This content has been marked as final.
Show 1 reply
-
1. Re: Configuring virtual hosts on JBoss 7
marcio.dantas Oct 7, 2011 2:32 AM (in response to developer251)Hi,
you have to create a new virtual-server element and point it to the war module you want to use.
If you don't set the web-module, jboss will use the default ROOT.war.
So, if your war file is nameOfWarModuleWithoutDotWar.war, your virtual server configuration will be like below.
<subsystem xmlns="urn:jboss:domain:web:1.0" default-virtual-server="virtualServerName"> <connector name="http" protocol="HTTP/1.1" socket-binding="http" scheme="http"/> <virtual-server name="virtualServerName" default-web-module="nameOfWarModuleWithoutDotWar"> <alias name="example.com"/> <alias name="otherExample.com"/> </virtual-server> </subsystem>