httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40004] New: - Mod_rewrite 'Last' flag doesn't seem to end rewriting
Date Mon, 10 Jul 2006 23:20:28 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40004>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40004

           Summary: Mod_rewrite 'Last' flag doesn't seem to end rewriting
           Product: Apache httpd-2
           Version: 2.2.2
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: pfudd@ubc.pkts.ca


I have two rules:
    RewriteBase /db/
    RewriteRule ^experiment-1 experiment-2 [L]
    RewriteRule ^experiment-2 experiment-3

The url http://localhost/db/experiment-1 should be rewritten to experiment-2,
and that should be the last rewriting to be done.  However, the actual file
retrieved is experiment-3.

The output of rewritelog (at level 2) is:
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa45668/initial] (2) init rewrite engine with
requested uri /db/experiment-1
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa45668/initial] (1) pass through /db/experiment-1
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa45668/initial] (2) [perdir /var/www/html/db/]
rewrite 'experiment-1' -> 'experiment-2'
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa45668/initial] (2) [perdir /var/www/html/db/]
trying to replace prefix /var/www/html/db/ with /db/
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa45668/initial] (1) [perdir /var/www/html/db/]
internal redirect with /db/experiment-2 [INTERNAL REDIRECT]
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4a040/initial/redir#1] (2) init rewrite engine
with requested uri /db/experiment-2
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4a040/initial/redir#1] (1) pass through
/db/experiment-2
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4a040/initial/redir#1] (2) [perdir
/var/www/html/db/] rewrite 'experiment-2' -> 'experiment-3'
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4a040/initial/redir#1] (2) [perdir
/var/www/html/db/] trying to replace prefix /var/www/html/db/ with /db/
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4a040/initial/redir#1] (1) [perdir
/var/www/html/db/] internal redirect with /db/experiment-3 [INTERNAL REDIRECT]
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4bcb8/initial/redir#2] (2) init rewrite engine
with requested uri /db/experiment-3
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4bcb8/initial/redir#2] (1) pass through
/db/experiment-3
127.0.0.1 - - [10/Jul/2006:16:07:25 --0700]
[localhost/sid#989a608][rid#aa4bcb8/initial/redir#2] (1) [perdir
/var/www/html/db/] pass through /var/www/html/db/experiment-3

I don't know what [L] is supposed to do, if this is correct behaviour.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message