We found that we had to do 2 things:
1) Make sure that mod_jk was loaded into Apache *before* mod_rewrite,
which meant moving the loading of mod_jk from mod_jk.conf to Apache's
httpd.conf, and we listed it in the LoadModule and AddModule lists
*before* mod_rewrite. That ensured that mod_rewrite got to the URL
before mod_jk did. I'm now less convinced this is absolutely
necessary--the next item may be more important.
2) Put the [PT] (passthrough) flag on all RewriteRule lines that were
rewriting URLs to go to Tomcat.
Also, one gotcha we hit was using the same pathname for both the
incoming URLs and for the Tomcat context, e.g.
http://ourhost/ContestSignup for the URL and /ContestSignup for the
context path. It's better (maybe required) to use a different name for
the context path, like /ContestSignupServlet.
dwh
Francis Pallini wrote:
> Hi,
>
> It sounds like you are a little sarcastic ;=)
>
> Regards,
>
> Francis Pallini
>
> At 11:25 AM 8/9/01 +0200, you wrote:
>
>> Can anyone tell me why the when using the mod_rewrite module, Tomcat
>> can't/don't seem to retrieve
>> the rewritten url and args?
>>
>> As I am responsible of the migration from JServ to Tomcat, I've to
>> write a
>> documentation that explain
>> this point...
>>
>> Lo�c Lef�vre
>
>
>