-
1. Re: undertow Virtual-hosts somehost.com
ctomc Nov 1, 2013 7:01 AM (in response to javajoe)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.
--
tomaz
-
2. Re: undertow Virtual-hosts somehost.com
javajoe Nov 1, 2013 7:16 AM (in response to ctomc)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...
-
3. Re: undertow Virtual-hosts somehost.com
javajoe Nov 1, 2013 8:12 AM (in response to javajoe)1 of 1 people found this helpfulGOT 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.