Meaningless Drivel is fun!*
The moose likes Other Java Products and Servers and the fly likes GlassFish Virtual Hosting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "GlassFish Virtual Hosting" Watch "GlassFish Virtual Hosting" New topic

GlassFish Virtual Hosting

Mohamed Mujahid

Joined: Jan 31, 2008
Posts: 3
Hi All,

I am working on some virtual hosting thing using glassfish server. Is there anybody knows that how to host multiple web applications in a single glassfish like Virtual Private Server(VPS). In the DNS server we can only give the IPs without any port number as the domain name listens 80 port by default. How can I configure to access different webapplications which may use different port numbers to access the port 80 so i dont need to give the port number at the end of the domain name.

Hope to have a reply as soon as possible,

Thanks in advance

Bhavik patel
Ranch Hand

Joined: Feb 20, 2007
Posts: 49

To use glassfish in virtual hosting environment you have to front end your glassfish server with apache using mode_jk.
Have a Look at this

Virtual Hosting Support In glassfish

Bhavik Patel
Glassfish Consultancy service At
It is sorta covered in the JavaRanch Style Guide.
subject: GlassFish Virtual Hosting
Similar Threads
DNS and Web Application Resolution
Virtual Hosting in Jboss Error
please help me how to create virtual host
Glassfish DNS Management ?
How to find the total number of sessions in my web application?