On 04/ 9/09 02:51 AM, Mujahid wrote:
> 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.
Here you mean that you "attach" both virtual servers to
"mytestlistener", right?
> When type www.abc.com it works fine. But then I type www.def.com it
> returns the previous result as www.abc.com.
Here you are saying that requests for
http://abc.com:80/
and
http://def.com:80/
return the same welcome page, right?
This is probably because both your virtual servers share the same docroot.
Try assigning different docroots (with different index.html welcome pages)
to each virtual server.
Jan
>
> 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
>