webtier@glassfish.java.net

Re: Web applications access control

From: <forums_at_java.net>
Date: Fri, 16 Dec 2011 05:51:37 -0600 (CST)

Create a virutal server in your instance (f.e. for the default-server)
asadmin ..... create-virtual-server --hosts <list-of-FQDNs> internal
If you need a different instance, just specify '--target <instance-config>'
option.

'internal' is the virutal server id .. .you can choose what you want.

I assume you're familiar what 'FQDN' and the 'http-host-header' attribute
meens.

Deploy your app to the target specifying the virtual server it should be
'bound' to.

asadmin ... deploy (--target <target>) --virtualservers internal <archive>

The app will only be served if you access it with the FQDN configured for the
virtual host.

HTH,

Bernhard


--
[Message sent by forum member 'bthalmayr']
View Post: http://forums.java.net/node/874293