tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schröder ...@deriva.de>
Subject Re: How can I control the path of my web app?
Date Mon, 23 Apr 2007 22:02:00 GMT
Caldarale, Charles R wrote:

> If you want to use a multi-level URL path to access your webapp, you need to do two things:
>
> 1) Place your .war file outside of Tomcat's directory structure to avoid having it deployed
twice.
>
> 2) Create a file named foo#bar#MyWebApp.xml in conf/Catalina/[host] that contains a <Context>
element with a docBase attribute pointing to the absolute location of your .war file.  (The
value of [host] in the above is usually localhost, unless you've fiddled with the <Host>
element in the server.xml file.)  This will override the META-INF/context.xml file that you
may have in your webapp.
>   

Do I have any chance if I don't have access to any directory outside of
the webapps directory?

Regards,
    Christian

-- 
Deriva GmbH                         Tel.: +49 551 489500-42
Financial IT and Consulting         Fax:  +49 551 489500-91
Hans-Böckler-Straße 2                  http://www.deriva.de
D-37079 Göttingen

Deriva CA Certificate: http://www.deriva.de/deriva-ca.cer


---------------------------------------------------------------------
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


Mime
View raw message