I have two war archives that I've deployed successfully to my server,
and have now registered two domain names, that I want to point to each
separately. I've tried adding to the httpd.conf to specify them, but
I'm not sure of the paths because of how the wars are deployed. I've
also tried adding the following line to the WEB-INF/web.xml file:
<virtual-host>new.domain.here</virtual-host>
Neither of these have worked, and I don't know that I'm working in the
right places. I've noticed quite a bit more information out there
about Tomcat, but I really don't have the option of switching (not my
decision). Where do I need to place my virtual host info?
K S Aldebaraan - 18 Mar 2004 06:49 GMT
> I have two war archives that I've deployed successfully to my server,
> and have now registered two domain names, that I want to point to each
[quoted text clipped - 8 lines]
> about Tomcat, but I really don't have the option of switching (not my
> decision). Where do I need to place my virtual host info?
Actually, I've now created a jboss-web.xml file in my WEB-INF
directory with the following content:
<jboss-web>
<context-root>/</context-root>
<virtual-host>new.domain.here</virtual-host>
</jboss-web>
But I've found that I can only get to my website when I go to
new.domain.here/webroot
I've tried other context-root paths, but all of them increase the
amount of things I have to put after the domain name (like adding
/webroot/ only makes it work when i go to
new.domain.here/webroot/webroot) How does the context-root path work?