tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From annie.fr...@e-peopleserve.com
Subject server.xml - Multiple Contexts for a Single WebApp
Date Fri, 08 Mar 2002 14:50:14 GMT
I am trying to duplicate an issue that I am having when I have Apache
connected to Tomcat, on Tomcat alone.

My Web Application is crashing when I have two entry points into the
Application, for example:
http://hostname
http://hostname/webappname

Is there a way to set up two Contexts that point to a Single Web Application
(basically mocking the Apache Alias)?

According to the Documentation, each Context must have a unique Context
Path.  I am hoping there is a way to fake the system out and allow for two
entries into the Application with only Tomcat running.

For example (server.xml):
        <Context path="" 
                 docBase="../../../../abewebapp" 
                 crossContext="true"
                 debug="0" 
                 reloadable="false" 
                 trusted="false"/>
        <Context path="/abewebapp" 
                 docBase="../../../../abewebapp" 
                 crossContext="true"
                 debug="0" 
                 reloadable="false" 
                 trusted="false"/>

This crashes the system... because the two docbases are not unique.

Is there another way to configure this??

Thanks,
Annie

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message