This content has been marked as final.
Show 1 reply
-
1. Re: Map a war to an HTTP connector / virtual host
ctomc Jun 19, 2012 10:41 AM (in response to dabramov)Hi,
what you are trying to achive is possible but with bit diffrent configuration:
<subsystem xmlns="urn:jboss:domain:web:1.1" default-virtual-server="default-host" > <connector name="http" scheme="http" protocol="HTTP/1.1" socket-binding="http"/> <connector name="http-vs" scheme="http" protocol="HTTP/1.1" socket-binding="http" > <virtual-server name="vs1" /> <virtual-server name="vs2" /> </connector> <virtual-server name="default-host" enable-welcome-root="true"> <alias name="localhost" /> <alias name="example.com" /> </virtual-server> <virtual-server name="vs1" /> <virtual-server name="vs2" /> </subsystem>
in this case we bind vs1 and vs2 virtual hosts to http-vs connector.
but please note that this functionality was recently found to be broken, so the fix is not yet merged into upstream, but it is expected to be soon.
for more about that see: https://github.com/jbossas/jboss-as/pull/2477
--
tomaz