To be fair i cannot understand what you want to achieve from your post.
In any case, this is example configuration with additional "other-host" virtual host defined:
... <server name="default-server"> .... <host name="default-host" alias="localhost"> <location name="/" handler="welcome-content"> </location> </host> <host name="other-host" alias="www.mysite.com, some.other.domain.tld" > <location name="/" handler="welcome-content"> </location> </host> ... </server> ...
then in jboss-web.xml you need to do mapping to your virtual host by defining <virtual-host>other-host</virtual-host>
if you add also <context-root>/</context-root> it will bind your war to other-host under / context.
host can have any number of aliases under which it available.
To be fair, the configuration in your post is exactly what I have, including the jboss-web.xml config that you
provide. Works Great in jboss 6...
1 of 1 people found this helpful
GOT IT! Here is whats not clear, nor could I find any documentation on "other-host"..
Dah,,, <host name="other-host" is important not just the alias has to map to your DNS
but the name "other-host" HAS TO EQUAL your virtual-host tag in the jboss XML file..
Works Great,, Thanx to all that respond.