users@glassfish.java.net

About Virtual Servers

From: <forums_at_java.net>
Date: Wed, 24 Aug 2011 02:35:59 -0500 (CDT)

I have been trying to do exactly what's written in the Oracle document

http://download.oracle.com/docs/cd/E18930_01/html/821-2416/giusf.html#giupz
[1] as:

For example, assume that you want to host the following domains on your
physical server: www.aaa.com, www.bbb.com, and www.ccc.com. Assume that these
domains are respectively associated with web modules web1, web2, and web3.
This means that the following URLs are handled by your physical server:

http://www.aaa.com:8080/web1 http://www.bbb.com:8080/web2
http://www.ccc.com:8080/web3
The first URL is mapped to virtual server www.aaa.com, the second URL is
mapped to virtual server www.bbb.com, and the third is mapped to virtual
server www.ccc.com. For this mapping to work, www.aaa.com, www.bbb.com, and
www.ccc.com must all resolve to your physical server’s IP address and each
virtual server must be registered with the DNS server for your network.

Following the contents above:

1. www.aaa.com, www.bbb.com, and www.ccc.com resolve to my physical
server’s IP address.

2. each virtual server is registered with the DNS server.

3. for the URL:virtual [2] server mapping

    (1) created network listeners http-listener-3 on #5996 and
http-listener-4 on port #5997.

    (2) created virtual servers www.bbb.com [3] (id=bbb) and www.ccc.com
[4] (id=ccc) to listen to http-listener-3 and http-listener-4, respectively.

    (3) deployed web2.war and web3.war to run virtual servers bbb and ccc,
respectively.

    (4) set Default Web Module of www.bbb.com [5] and www.ccc.com [6] to
web2.war and web3.war, respectively.

    (5) set Docroot of each virtual server to
${com.sun.aas.instanceRoot}/applications/[context_root]

After all these I get 403 Forbidden "You don't have permission to access / on
this server." error with http://
www.bbb.com [7]/
and http://www.ccc.com/ [8]. I have searched and read several topics in this
forum but couldn't get any solution. Any input will be appreciated. Thanks.


[1]
http://download.oracle.com/docs/cd/E18930_01/html/821-2416/giusf.html#giupz
[2] http://www.java.net/sites/all/modules/fckeditor/fckeditor/editor/virtual
[3] http://www.bbb.com
[4] http://www.ccc.com
[5] http://www.bbb.com
[6] http://www.ccc.com
[7] http://www.bbb.com/
[8] http://www.ccc.com/

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