tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Emenaker" <...@emenaker.com>
Subject Should "tomcat-auto" do this?
Date Tue, 03 Apr 2001 01:02:07 GMT
When I run Tomcat, it auto-generates an include file for Apache called
"tomcat-auto". It uses a directive called "JkMount" to redirect certain
URL's to Tomcat's non-http interface. For example, my "tomcat-examples"
webapp yields a couple of entries that look like:

   JkMount /tomcat-examples/servlet/* ajp12
   JkMount /tomcat-examples/*.jsp ajp12

So that anything beginning with "/tomcat-examples/" and ending in ".jsp" or
anything beginning with "/tomcat-examples/servlet" will get redirected to
Tomcat.

Okay.... fine. However, I can define other servlet mappings in the web.xml
file that don't get reflected in tomcat-auto. For example, suppose I made a
servlet called MyNewServlet.class and put it into tomcat-examples. Let's
also suppose that I mapped that to the path "newserv" in my web.xml.

If I do this, I can get to the servlet through Tomcat's HTTP port in one of
two ways:
  /tomcat-examples/servlet/MyNewServlet
or
  /tomcat-example/newserv

However, going through *Apache*, I can only use the first one, because
tomcat-auto tells Apache to only forward requests to Tomcat if it sees
something ending in *.jsp or something with "servlet" in the path.

So, my question is: shouldn't tomcat-auto also contain JkMount commands for
all servlets that I've mapped to paths in web.xml?

- Joe



Mime
View raw message