-
1. Re: virtual-server root war and access-log
nayabinghi Dec 20, 2011 4:00 PM (in response to jblaplace)Hi,
Wondering if you ever got this resolved. I am having the same exact problem. Seams like virtual-server feature does not work or some other configuration is required
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="dev1.net">
<connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/>
<connector name="ajp" protocol="AJP/1.3" socket-binding="ajp" scheme="http" enabled="true"/>
<virtual-server name="dev1.net" default-web-module="helloworld">
<alias name="www.dev1.net"/>
</virtual-server>
<virtual-server name="dev2.net" default-web-module="Calendar">
<alias name="www.dev2.net"/>
</virtual-server>
</subsystem>
With the configuration above am able to get to http://dev1.net:8080/hi.jsp and I see the helloworld application just fine. But if I go to http://dev2.net:8080 which is where the Calendar application is at I get a blank page. If I set "default-virtual-server=dev2.net" I then get to see the dev2 app but not dev1. Looks like default-virtual-server is controlling what host/application is served but how can this be changed so one can have multiple applications served over different hosts. You help will be greatly appreciated.
Thanks,
Mohamed