You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/04/20 15:35:22 UTC

DO NOT REPLY [Bug 28498] New: - $1 not set/used in rewrite

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=28498>.
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=28498

$1 not set/used in rewrite

           Summary: $1 not set/used in rewrite
           Product: Apache httpd-1.3
           Version: 1.3.29
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_rewrite
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: james@rcpt.to


Same configuration worked under 1.3.26. Now under 1.3.29, the following happens.

# snip httpd.conf
RewriteEngine   on
RedirectMatch   /share$        
http://photos.fotango.com/cgi-bin/display_share_login.cgi
RedirectMatch   /share/        
http://photos.fotango.com/cgi-bin/display_share_login.cgi
RewriteLog      "/tmp/rewrite.log"
RewriteLogLevel 4
RewriteRule ^/p/(.*)       "http://photos.fotango.com/p/$1"  [R,L]
RewriteRule ^/cgi-bin/(.*) "http://photos.fotango.com/cgi-bin/$1"  [R,L]
RewriteRule ^/adm/(.*)      http://photos.fotango.com/adm/$1  [R,L]
RewriteRule ^/admin/(.*)    http://photos.fotango.com/admin/$1  [R,L]
# snip


And from the rewrite log:

# snip
(2) init rewrite engine with requested uri /p/eba00407742f00000032.jpg
(3) applying pattern '^/p/(.*)' to uri '/p/eba00407742f00000032.jpg'
(2) rewrite /p/eba00407742f00000032.jpg -> http://photos.fotango.com/p/
(2) explicitly forcing redirect with http://photos.fotango.com/p/
(1) escaping http://photos.fotango.com/p/ for redirect
(1) redirect to http://photos.fotango.com/p/ [REDIRECT/302]
# snip


It appears that the math occurs, but the third line of the log doe snot have the
content of $1 appended.

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