Hi Wolfgram
What I'm trying to is the same behaviour of Apache or IIS: one single listener and requests routed by host header.
In my configuration I have added additional IPs to /etc/hosts:
127.0.0.1 localhost.localdomain localhost
10.128.128.31 lvov1.ips
10.129.128.32 lvov2.ips
10.129.128.33 lvov3.ips
The domain.xml listener and server sections are:
<http-listener acceptor-threads="1" address="0.0.0.0" blocking-enabled="false" default-virtual-server="server" enabled="true" family="inet" id="http-listener-1" port="8173" security-enabled="false" server-name="" xpowered-by="true">
<property name="proxiedProtocols" value="ws/tcp"/>
</http-listener>
<virtual-server hosts="localhost, localhost.localdomain" http-listeners="http-listener-1" id="server" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
<property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
<property name="sso-enabled" value="false"/>
</virtual-server>
<virtual-server default-web-module="A31" hosts="lvov1.ips" http-listeners="http-listener-1" id="S31" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
<property name="sso-enabled" value="false"/>
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
<property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
</virtual-server>
<virtual-server default-web-module="A32" hosts="lvov2.ips" http-listeners="http-listener-1" id="S32" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
<property name="sso-enabled" value="false"/>
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
<property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
</virtual-server>
<virtual-server default-web-module="A33" hosts="lvov3.ips" http-listeners="http-listener-1" id="S33" log-file="${com.sun.aas.instanceRoot}/logs/server.log" state="on">
<property name="sso-enabled" value="false"/>
<property name="docroot" value="${com.sun.aas.instanceRoot}/docroot"/>
<property name="accesslog" value="${com.sun.aas.instanceRoot}/logs/access"/>
</virtual-server>
Module A31 is deployed on S31, context /A31; A32 on S32, context /A32 and A33 on S33, context /A33.
Whenever I try to open
http://lvov1.ips:8173 the docroot page is shown; the same occurs with lvov2 and lvov3
Whenever I try to open
http://lvov1.ips:8173/A31 a blank, void page is shown without errors on the browser and on the server log. The same happens with lvov2 and lvov3 and any combination of them with A31, A32 and A33.
The goal of this is when url
http://lvov1.ips is opened, module /A31 be opened, and so with lvov2.ips - /A32, lvov3.ips - /A33
[Message sent by forum member 'aperezymadrid' (aperezymadrid)]
http://forums.java.net/jive/thread.jspa?messageID=283572