Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

determining order in which things are processed: webapp and rewrite

Status
Not open for further replies.

carpeliam

Programmer
Mar 17, 2000
990
US
I'm using mod_webapp to coordinate with Tomcat (servlet engine) as well as mod_rewrite so that I can have the process redirected to Tomcat's webapp under the hood without the user seeing it. (I'm using the PT directive for rewrite.)

It seems as though the call to mod_webapp is getting called before mod_rewrite; If I deploy my webapp in the root directory, nothing is written in the rewrite log file; if I deploy my app in directory "/xyz", I get a message in error.log saying that the file "C:/apache/htdocs/xyz" could not be found.

All of this leads me to believe that webapp is getting called before rewrite, although I have my rewrite code right under the AddModule section (towards the top), while the webapp code is at the very bottom.

If ANYBODY could shed ANY light on this situation, I'd be GREATLY appreciative. Thank you :eek:) Liam Morley
lmorley@wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
 
Apache assigns the priorities to the loaded modules bottom up - therefore the last module will have the highest priority.

You just have to Add and Load the mod_rewrite AFTER mod_webapp!

greetings,
ecroy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top