tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Freeman <>
Subject URL rewriting with Tomcat/Apache
Date Wed, 29 Nov 2000 04:39:21 GMT
According to the Tomcat FAQ, URL rewriting should work with Tomcat 3.1
when run with Apache if the mod_rewrite is enabled and the rule included:

   <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteRule  ^(/.*;jsessionid=.*)$  $1  [T=jserv-servlet]

I have not succeeded in getting this to work.  I have added the lines

     RewriteLog /usr/local/apache/logs/rewrite.log
     RewriteLogLevel 9

and I find that none of the requests from action="SessionExample" get passed
to the rewrite-module.  The only activities that are logged in the rewrite.log
file are things like
which are not going to be affected by the rewrite rule and which are not
coming from my servlet execution.

Session ID is passed without problem if I use cookies.

There seems to be something that I am missing in trying to use Tomcat with
Apache.  Can anyone suggest what I should try?  I am running Linux on my 
machine.  I have Java 1.3 installed, and it is Tomcat 3.1 I am trying to 
get working with Apache 1.3.14

View raw message