tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandros Kotsiras" <>
Subject RE: URLRewriting and Apache+tomcat
Date Thu, 20 Jul 2000 22:52:57 GMT
I tried both :

<LocationMatch \.jsp-sal;jsessionid= >
        SetHandler /sales/servlet/jsp-servlet

and the other Idea that was posted  :

<IfModule mod_rewrite.c>
      RewriteEngine On

      # Force URLs with a jsessionid to go to Tomcat. Necessary because
      # Apache doesn't recognise that the semi-colon is special.
      RewriteRule	^(/.*;jsessionid=.*)$	$1 [T=/sales/servlet/jsp-servlet]

None of them work . Apache still get's confused with the ";" and replies 404

But in case it works for somebody it looks to my that it will work only when
you invoke a page from an <A href
What if i click on reload/refresh ? Do i still have the same sessionID or a
new sessionID is assigned for every reload ? ?

-----Original Message-----
From: []On Behalf Of Raphael Pierquin
Sent: Saturday, July 22, 2000 5:45 PM
Subject: Re: URLRewriting and Apache+tomcat


I had the same issue/config, it seems that apache doesn't  match URLs
ending in .jsp;jsession=... as jsp URLs. I guess that's why it doesn't
forward the query to tomcat and replies a 404.

Theese lines in my apache config file fixed it:

       <LocationMatch \.jsp;jsessionid= >
                SetHandler jserv-servlet

This might not be the cleanest way to solve the problem, but at least it
Raphael Pierquin

> Ok I have apache+tomcat working together except for the URL rewriting
> part, when I call Test.jsp on my apache webserver (port 80) I get a
> 404 file not found, when I call it on port 8080 (default port tomcat)
> it works!  (I do not accept cookies, otherwise URL rewriting would be
> pointless ;-)

> When I look in the access_log file and error logs from apache I do not
> see anything unusual (except the 404) does anybody have an idea why my
> URL rewriting tests are not working?

View raw message