users@glassfish.java.net

Multiple Webhosting in Glassfish

From: Mujahid <ajmujaa_at_gmail.com>
Date: Thu, 09 Apr 2009 15:51:16 +0600

Hi All,

I have another problem related to glassfish hosting.

I have two domain names www.abc.com and www.def.com. The both domain
name are referred by the same IP address as 72.167.45.145.
I have a dedicated server which has GlassFish V2 installed and the IP
address is 72.167.45.145.Then I create a listener to listen port
80(Listen name is mytestlistener). Then I create two
virtual server for my domain names. vs - 1 is refer www.abc.com and vs -
2 is refer www.def.com. Next I point it to two virtual servers. When
type www.abc.com it works fine. But then I type www.def.com it returns
the previous result as www.abc.com.

Is there anyway to solve this problem. which mean exactly I want to
refer vs - 1 to www.abc.com and vs - 2 to www.def.


Please send me a reply as soon as possible

Thank you