tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
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 
<Fischer@immobilienscout24.de> 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 
> JRUN,
> all is okay. Jrun handle aliases without problems. But Tomcat don't???

in server.xml:

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

> 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 
http://localhost/someDir/servlet/myServlet.
#4: no.

Best thing to do is try it and see.

John


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