You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Björkman <pe...@josh.se> on 2006/11/08 13:34:54 UTC

Several hosts with default contexts...

Hi! This might be a stupid question, but I can't find the answer anywhere.

I will run multiple hosts (Tomcat 5.0) and they should each have different default web applications. I could define the contexts in server.xml, but this is not recommended according to the documentation. The way we usually do it is to place our context.xml in teh META-INF directory, but then how could the correct host handle the context? 

Is the solution to manually insert the context.xml file into:

conf/[Engine]/[hostname]/context.xml
that is,
conf/Catalina/www.mydomain.com/context.xml

Or is there some other way of doing it?

Regards
Peter

PETER BJÖRKMAN - SYSTEM ARCHITECT
josh / together is better / www.josh.se
sveavagen 59 / 113 59 stockholm / sweden
phone +46 (0)8 650 21 07 / mobile +46 (0)709 687 887
###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.f-secure.com/

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Several hosts with default contexts...

Posted by Mark Thomas <ma...@apache.org>.
Peter Björkman wrote:
> Hi! This might be a stupid question, but I can't find the answer anywhere.
This came up yesterday. I think I need to put something in the docs...

http://marc.theaimsgroup.com/?l=tomcat-user&m=116296369528038&w=2

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org