File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: GlassFish Virtual Hosting
It's not a secret anymore!