> From: Jeroen Kransen [mailto:jer...@kransen.nl] 
> Subject: Tomcat 6 multiple hosts howto
> 
> I used Tomcat 5.5 with multiple <Host/> elements in the 
> server.xml Now I read that this has to be done differently
> in Tomcat 6, but I am not sure how.

Tomcat 6 is a bit stricter; you may not have been doing things completely 
properly in 5.5.  The doc is here:
http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

> I added a conf/Catalina/examplecom/context.xml

You must have misinterpreted what you read; the above would only be appropriate 
for a web site with the name "examplecom" (not "example.com") with a webapp 
named "context".  Unlikely to be what you want.

> Also, is there a way to specify individual classpaths that 
> have a Host as scope?

No.

> That way I can deploy the same webapp for different hosts
> using different settings in the .properies files.

Bad idea.  Just deploy the .war (or directory) as many times as you need.  It 
costs some disk space, but that's exceedingly cheap.  Separate properties can 
be specified in each webapp's <Context> element, placed in the 
conf/Catalina/[host]/[appName].xml files.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to