-
1. Re: Virtual Hosts with Apache/Tomcat/JBoss
clevanger Jun 15, 2003 2:40 AM (in response to aidano)Hi,
In apache you need to mount the context /* (with JKMount or equivilant)
then in your war file in th WEB-INF directory, include a file called jboss-web.xml and in that file put
<jboss-web>
<context-root>/</context-root>
<virtual-host>whatever.com</virtual-host>
</jboss-web>
I hope I understood your question -
2. Re: Virtual Hosts with Apache/Tomcat/JBoss
aidano Jun 16, 2003 7:24 AM (in response to aidano)Clevanger - Thanks for the answer.
Are there any additional operations to perform when my WAR files are deployed inside EARs as opposed to just WARs on their own? -
3. Re: Virtual Hosts with Apache/Tomcat/JBoss
aidano Jun 16, 2003 7:45 AM (in response to aidano)Actually - that doesn't work for me. The first EAR deploys ok, but when JBoss goes to deploy my second, I get this exception:
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwabl
e: (java.lang.IllegalArgumentException: addChild: Child name '' is not unique)
Now this is obviously because I have defined 2 WARs with the context of '/', but isn't this what I need to do to configure 2 separate virtual hosts? -
4. Re: Virtual Hosts with Apache/Tomcat/JBoss
aidano Jun 16, 2003 11:15 AM (in response to aidano)Just to update - I got this going finally after reading the Quickstart guide (doh!) and finding that I had to edit tomcat41-service.xml to include my virtual host details.
I don't understand why nobody else has mentioned this - is everyone using Jetty?