O'Reilly logo

GlassFish Security by Masoud Kalali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hosting multiple domains using one IP

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.

Note

To see how virtual host configuration works on different ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required