Virtual hosts or virtual servers are basically the feature that made it possible for web hosting providers to host multiple domains using one IP and one physical machine. For example, two domains like www.domain5.com and www.domain6.com can be hosted on one physical machine having one IP address.
In such cases, the name server translates both addresses to one IP address and later on the web server or application server directs the requests to a correct virtual server based on the domain name or the URL pattern.
For GlassFish, the story is a bit different because GlassFish gives more flexibility and isolation compared to Tomcat or other application servers.
To see how virtual host configuration works on different ...