You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steven Maring <St...@trcinc.com> on 2000/04/04 17:34:57 UTC

problem with multiple contexts

I'm having a problem setting up multiple contexts to be independant of each
other.  My two contexts are 'modelSystem' and 'cocoon_samples', which ever
one is listed last in the server.xml file seems to handle requests to either
context.  For example, if I have:

<Context path="/cocoon_samples" docBase="e:\data\htdocs\cocoon_samples"
debug="0" reloadable="true" ></Context>
<Context path="/modelSystem" docBase="e:\data\htdocs\modelSystem" debug="0"
reloadable="true" ></Context>

trying to access either http://localhost/cocoon_samples/index.xml or
http://localhost/modelSystem/index.xml will map to the modelSystem/index.xml
file!

Anybody know what I'm doing wrong?

tomcat.conf:

ApJServMount /servlet /ROOT
################## modelSystem config ###############################
ApJServMount /modelSystem /modelSystem
<Location /modelSystem/WEB-INF/ >
	AllowOverride None
	deny from all
</Location>
################## cocoon_samples config ###############################
ApJServMount /cocoon_samples /cocoon_samples
<Location /cocoon_samples/WEB-INF/ >
	AllowOverride None
	deny from all
</Location>


Thanks.


# Steve Maring
# Web Engineer
# Technical Resource Connection, Inc.
# A wholly owned subsidiary of Perot Systems
# 800-872-2992, ext. 4323
# smaring@trcinc.com