Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: mapping uri to tomcat directory

[Your Full Name] MARIE C. BRICE

2004-04-20


I BELIEVE YOU HAVE THE WRONG EMAIL ADDRESS: I KNOW NOTHING ABOUT YOUR
SPECIFIC REQUEST & I AM ON THE EAST COAST.

KINDLY RECHECK THE SPECIFIC EMAIL ADDRESS & THE INTENDED DESTINATION YOU
HAVE IN MIND; GOOD LUCK!

MS BRICE



-----Original Message-----
From: Hans Sponberg [mailto:live216@(protected)]
Sent: Tuesday, April 20, 2004 1:11 AM
To: JSP-INTEREST@(protected)
Subject: mapping uri to tomcat directory


I am using apache / tomcat together, and I am wondering how to remap a
request for Tomcat. For example, I want the uri to be: mydomain.com/username
but I want the actual directory mapping to be /www/users/username.
(mydomain.com points to /www) For static content, I can use an alias for
apache like so: alias username "www/users/username", but the request is sent
to tomcat before the alias takes place, so tomcat looks in www/username,
which of course does not exist. So the alias works for static content, but
not for my jsp pages. Furthermore, I cannot setup Tomcat with <Context
path="/username" docBase="/www/users/username".../> because the jsp files in
/www/users/username have <jsp include tags> that reference content at
/www/templates/ and jsp's can't see beyond their context docBase. What can I
do?

Thanks,
Hans

===========================================================================
To unsubscribe: mailto listserv@(protected)
JSP-INTEREST". For digest: mailto listserv@(protected)
JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.