tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark H. Wood" <mw...@IUPUI.Edu>
Subject Re: How to customize the context paths for several web application.
Date Mon, 04 Jun 2007 13:40:30 GMT
On Mon, Jun 04, 2007 at 06:41:02PM +0800, Guofeng Zhang wrote:
> We have four web applications that deployed on Tomcat 6.0 at the same
> time. Some special customers want to use special context paths to access
> them, so I think the easiest way is to use context.xml to define the
> context paths.
> I do not know how to do it? Can you kindly give me a sample? Thanks
> As I know, the context.xml is placed in $CATALINA_HOME/conf/context.xml.
> This way we can only define one context path.

There are five places where a Context may be defined.  You probably
want either '$CATALINA_HOME/conf/[enginename]/[hostname]/pathname.xml'
or (within the app. itself) 'META-INF/context.xml'.  In the former
case you would specify the path by the naming of the file; in the
latter, you would code a 'path' attribute in the Context element.

Mark H. Wood, Lead System Programmer   mwood@IUPUI.Edu
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

View raw message