tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <>
Subject Re: 2 newbie questions: Apache-tomcat
Date Fri, 18 Jul 2003 14:52:41 GMT
On Fri, 18 Jul 2003 16:45:42 +0200, Fischer, Ilona 
<> wrote:

> 1. is it possibly apply aliases to tomcat?
> For example: the webapp-root is "/www/mywebapp". I want to mount an 
> directory "/other/directory/help" to the name "help"
> (httpd.conf: alias /help other/directory/help). But when i'm calling
> http://mywebsite/help it crash's with a 404 error:o( . When i'm using 
> all is okay. Jrun handle aliases without problems. But Tomcat don't???

in server.xml:

<Context path="/help" docBase="/other/directory/help">

> 2. is the Option "JkMount /*.jsp worker1" the same as "JkMount /*/*.jsp
> worker1"? Or means "/*.jsp" only the *.jsp in the root of my webapp?
> Can i wrote something like that: 	"JkMount /servlet/* worker1
> 	JkMount /anotherdirectory/servlet/* worker2"
> and it works? How about regexpressions in the JkMount-option?

#1: no.  The second one is invalid, only one wildcard ("*") is allowed.
#2: "/*.jsp" means "send all requests ending in ".jsp" to Tomcat regardless 
of the directory structure
#3: yes. "/servlet/*" matches http://localhost/servlet/myServlet but not 
#4: no.

Best thing to do is try it and see.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message