Greetings,
I am using Tomcat 3.1 under IIS 5.0 on NT 2000.
I have 2 contexts, each associated with a different domain.
Domain A is www.hdi.com and is associated with a context called
patersons and uses an absolute docbase
Domain B is www.patersons.com and is associated with a context called
realestate and uses a docbase relative to ContextManager home
See the server.xml (below)
When I address www.hdi.com/patersons/whatever.jsp it works great.
When I address www.patersons.com/realestate/whatever.jsp I get a 404
error
What have I stuffed up?
Thanks for any advice!
-- ---------------
<ContextManager debug="0" workDir="work" home="F:\Sites">
<!-- ContextInterceptor
className="org.apache.tomcat.context.LogEvents" / -->
<ContextInterceptor
className="org.apache.tomcat.context.AutoSetup" />
<ContextInterceptor
className="org.apache.tomcat.context.DefaultCMSetter" />
<ContextInterceptor
className="org.apache.tomcat.context.WorkDirInterceptor" />
<ContextInterceptor
className="org.apache.tomcat.context.WebXmlReader" />
<ContextInterceptor
className="org.apache.tomcat.context.LoadOnStartupInterceptor" />
<!-- Request processing -->
<RequestInterceptor
className="org.apache.tomcat.request.SimpleMapper" debug="0" />
<RequestInterceptor
className="org.apache.tomcat.request.SessionInterceptor" />
<RequestInterceptor
className="org.apache.tomcat.request.SecurityCheck" />
<RequestInterceptor
className="org.apache.tomcat.request.FixHeaders" />
<!-- This connector not needed because IIS is running
<Connector
className="org.apache.tomcat.service.SimpleTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
<Parameter name="port" value="8080"/>
</Connector>
-->
<Connector
className="org.apache.tomcat.service.PoolTcpConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="8007"/>
</Connector>
<!-- Set the context (zone) for HomeDesign -->
<Context path="/patersons" docBase="F:\Sites\HDI\patersons"
debug="0" reloadable="false" >
</Context>
<Context path="/realestate" docBase="patersons" debug="0"
reloadable="false" >
</Context>
<Context path="/property" docBase="metro" debug="0"
reloadable="false" >
</Context>
<!-- example - how to override AutoSetup actions -->
</ContextManager>
-----------------------------------
Regards,
Powel Crosley
Crosley Consultants
PO Box 846
Dunedin
pcrosley@crosley.co.nz
+64 (03) 477 3596
+64 (03) 477 3597 Facsimile
|