admin@glassfish.java.net

Re: The Vistual Domains in GlassFish

From: Abhijit Kumar <Abhijit.Kumar_at_Sun.COM>
Date: Tue, 12 Sep 2006 19:43:53 -0700

Just noticed the part about using a specific war file for a virtual
domain. There are two ways to do that --

1. Set the default-web-module attribute of a virtual server to the name
of web module. For example,

        <virtual-server hosts="www.jose.org,jose.org"
http-listeners="port80,port443" id="jose" *default-web-module="jose"*
log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
...
        </virtual-server>


2. While deploying the war file, use "/" as context root and deploy the
war file to the appropriate virtual server.

Abhijit Kumar wrote:

> See --
>
> https://glassfish.dev.java.net/servlets/ReadMsg?list=admin&msgNo=12
>
> Also see,
>
> http://blogs.sun.com/page/theaquarium?anchor=dynamically_adding_a_virtual_server
>
>
> Please let us know if there are problems ...
>
> Dyego Souza Dantas Leal wrote:
>
>> I need to create a virtual domain in glassfish... ex:
>>
>> http://jose.mydomain.org
>> access jose.war in the server
>>
>> and
>>
>> http://myfound.myanotherdomain.org
>> access myfound.war in the SAME SERVER...
>>
>>
>> exists a howto to this ?
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>