users@glassfish.java.net

Re: Handle Multiple Domain Names To One IP Address

From: <glassfish_at_javadesktop.org>
Date: Mon, 11 Feb 2008 11:28:22 PST

Regarding 1.:

Configure your dns to make sure that www.xxxx.com and www.yyyy.net both resolve to the same ip address 91.x.xx.132.

Create 2 virtual servers: vs1 and vs2. use www.xxxx.com as the value of the "hosts" attribute of vs1, and www.yyyy.net as the value of the "hosts" attribute of vs2.

Associate both vs1 and vs2 with the same http-listener that listens on 91.x.xx.132 at a given port.

Deploy app1 to vs1, and app2 to vs2.


Regarding 2.:

Deploy Searcher to the virtual server's root context "/", or declare it as the virtual server's default-web-module, in which case it will be accessible at both "/" and "/Searcher".
[Message sent by forum member 'jluehe' (jluehe)]

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