tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: Apache getting confused by encoded jsessionid's (404 Not Found)
Date Tue, 25 Jul 2000 21:20:55 GMT
Matt Goss wrote:

> Aleksey,
> your problem is this:
> ";jsessionid=XXX"
> needs to be this:
> "?jsessionid=XXX"
> hope this helps,
> Matt Goss

This advice is not correct.

For servlet containers that conform to the servlet API version 2.2 (including
Tomcat), the semicolon is the character required in the spec.  The session id
is encoded as a *path* parameter, not a *query* parameter.

In order to make this work with Apache, you will need to enable the
MOD_REWRITE module to rewrite the URI in a fashion that Apache knows how to
forward to Tomcat.  Detailed instructions for this (and answers for many other
questions about Tomcat) can be found in the FAQ-O-MATIC at

The detailed link to this particular answer is:

(or search for "url rewriting" using the search engine).

Craig McClanahan

View raw message