users@glassfish.java.net

Re: web application for a particular virtual server only

From: Sahoo <Sahoo_at_Sun.COM>
Date: Thu, 14 May 2009 15:37:16 +0530

Use --virtualservers option while deploying using "asadmin deploy" command.

glassfish_at_javadesktop.org wrote:
> Hello,
>
> I just started to play with Glassfish. After installation, I noticed there is a virtual server which name is "server". I created another virtual server server2. After I uploaded a hello.war file, I found that hello app could be accessed from both http://server1/hello and http://server2/hello.
>
> How can I restricted the hello application to a particular virtual server? In my case, I wish http://server1/hello should NOT work and http://server2/hello should work.
>
> Thanks,
> Kevin
> [Message sent by forum member 'zhangyongjiang' (zhangyongjiang)]
>
> http://forums.java.net/jive/thread.jspa?messageID=346197
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>