Forum Moderators: phranque

Message Too Old, No Replies

rewrite and jsp

why my apache ddoesn´t rewrite jsp pages

         

fjoc7

10:40 am on Feb 17, 2005 (gmt 0)

10+ Year Member



I had set some lines to rewrite some URIs in a virtual host and it works properly, but if the request is a .jsp y fails. I see that the rules doesn´t apply. Why the jsp pages doesn´t rewrite? It redirect to the WAS that serve the pages without doing the rewriting.
I´m lost
thanks in advance.

jdMorgan

4:01 pm on Feb 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



fjoc7,

Welcome to WebmasterWorld!

This probably has to do with the order that Apache executes modules. If the module that handles jsp is executed before mod_rewrite, then mod_rewrite cannot affect the processing of jsp files.

This often happens on Apache 1.3 when people add PHP to their server. If they add PHP into the LoadModule list in the wrong place, then mod_rewrite won't rewrite PHP URLs.

Apache 2 introduces the concept of "module priority" to overcome such problems, but I'm not a jsp or Apache 2 user, so maybe someone else can give you more details.

Jim

fjoc7

7:53 am on Feb 18, 2005 (gmt 0)

10+ Year Member



Hi Jim,
thanks for the answer...
I use 1.3.19.4... and I don´t know anythig about modules priority. Where can I read about it, and how I give less priority to my module.

thanks in advance

fjoc7

8:30 am on Feb 18, 2005 (gmt 0)

10+ Year Member



thanks Jim
It´s great.... I have changed the order and it works...

you have a friend in spain :-)