-
1. Re: Multiple Domains and JBoss - How?
dbronk Nov 18, 2002 10:08 PM (in response to dbronk)Ok, I found that if I create a /WEB-INF/jboss-web.xml file for both applications with the following content:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.domain_X.com</virtual-host>
</jboss-web>
This works, kind of. I have the above (with different virtual host names for each of my webapps so browsing to www.domain_X.com gets me to where I want to be. Couple problems with this:
1. I want www.domain_X.com and domain_X.com to both go to the / context but I can not specify multiple virtual hosts per app.
2. I want to be able to also specify webmail.domain_X.com to go to my webmail program within the same war file as the rest of the domain_X.war.
3. I want anything browsing to just the IP to fail because going to the IP I will not know which domain app to display.
Seems that JBoss is lacking in the virtual-host features. I realize that there is nothing really in the J2EE spec for virtual hosts, but this is an extremely common need and JBoss does not seem to handle multiple virtual hosts well (or maybe even at all).
Any ideas?
Dale