tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <Craig.McClana...@eng.sun.com>
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
<http://jakarta.apache.org/faq/faqindex.html>.

The detailed link to this particular answer is:

http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/action/SetAll/project_id/2/faq_id/12/topic_id/43/question_id/329

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

Craig McClanahan



Mime
View raw message