You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Mealling <mi...@bailey.dscga.com> on 2000/08/20 18:10:18 UTC
mod_rewrite, jserv and jakarta wierdness
Versions: apache1.3.12
apache/JServ 1.1.2
tomcat 1.3
I'm attempting to rewrite the '/' path to this one: '/cnrp/CNRPResolver'.
Just using mod_jserv and JServ 1.1.2 it works fine. When I stop JServ
and start tomcat in its place somehow the URL gets rewritten to entirely
wrong. Here's the output of the rewrite log:
This is when I did it under just JServ. Its completely correct and does
the right thing:
198.78.9.10 - - [20/Aug/2000:12:13:05 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) init rewrite engine with requested uri /
198.78.9.10 - - [20/Aug/2000:12:13:05 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (3) applying pattern '^/$' to uri '/'
198.78.9.10 - - [20/Aug/2000:12:13:05 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) rewrite / -> /cnrp/CNRPResolver
198.78.9.10 - - [20/Aug/2000:12:13:05 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) forcing '/cnrp/CNRPResolver' to get passed through to next API URI-to-filename handler
This is under jakarta-tomcat:
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) init rewrite engine with requested uri /
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (3) applying pattern '^/$' to uri '/'
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) rewrite / -> /cnrpd/servlet/CNRPResolver
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#10c068/initial] (2) forcing '/cnrpd/servlet/CNRPResolver' to get passed through to next API URI-to-filename handler
Up until this point its correct. But for some reason the rewrite engine
gets it again but this time the '/cnrpd/servlet' bit has been lopped off
and the rewrite engine acts just on the last bit. '/cnrpd' is a valid
webapps and its mounted correctly because I can access all of the
servlets in there directly. I can even access /cnrpd/servlet/CNRPResolver
if I call it directly.
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#1100a0/subreq] (2) init rewrite engine with requested uri /CNRPResolver
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#1100a0/subreq] (3) applying pattern '^/$' to uri '/CNRPResolver'
198.78.9.10 - - [20/Aug/2000:12:09:53 -0400] [research.netsol.com/sid#e6da0][rid#1100a0/subreq] (1) pass through /CNRPResolver
Does anyone have a clue why this is happening?
--
--------------------------------------------------------------------------------
Michael Mealling | Vote Libertarian! | www.rwhois.net/michael
Sr. Research Engineer | www.ga.lp.org/gwinnett | ICQ#: 14198821
Network Solutions | www.lp.org | michaelm@netsol.com