tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject Re: Context path changes in context.xml not working
Date Thu, 06 Oct 2005 05:37:58 GMT
> From: David Kerber <dckerber@verizon.net>
> Subject: Re: Context path changes in context.xml not working

> Nobody has any suggestions about setting up a 2-level context path 
> *without* putting it in the server.xml (it works fine in there)?

I thought I remembered something about this, and went googling for the
issue.  Take a look at:
http://marc.theaimsgroup.com/?l=tomcat-user&m=110989168604231&w=2

If you put your <Context> fragment in
   conf/[enginename]/[hostname]/dir1#dir2#appname.xml
you can access the webapp via http://[hostname]/dir1/dir2/appname, which
I think is what you want.  Haven't been able to find this in the Tomcat
doc yet, but I did test it successfully on 5.5.9.  Have no idea if this
trick with the # would work on the name of a .war file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message