users@glassfish.java.net

Re: Cannot setup two virtual servers on same port (80) even with

From: <glassfish_at_javadesktop.org>
Date: Mon, 14 Jul 2008 10:31:59 PDT

> My question would be : How can I setup Glassfish to serve to different
> IPs (www.myDomain.com and subDomain.myDomain.com) on port 80, on the
> same machine but with two different virtual servers.

Create 2 virtual servers. Set the "hosts" attribute of one to "www.myDomain.com", and the "hosts" attribute of the other to "subDomain.myDomain.com".

Set the "http-listeners" attribute of each of the new virtual servers to the http-listener that's serving port 80.
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=286494