www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Lei <r...@chinaren.com>
Subject mod_rewrite/6756: mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} in ${MapName:LookupKey}
Date Sun, 29 Oct 2000 14:19:53 GMT

>Number:         6756
>Category:       mod_rewrite
>Synopsis:       mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} in ${MapName:LookupKey}
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sun Oct 29 06:20:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     rick@chinaren.com
>Release:        1.3.14
>Organization:
apache
>Environment:
Linux Slackware 7.0/kernel 2.2.17, with egcs-2.91.66 19990314/Linux
>Description:
mod_rewrite of 1.3.14 doesn't expand %{VARIABLE} variables in a ${MapName:LookupKey} context.

e.g., the following lines in httpd.conf

RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1

works well in 1.3.12¡£I got %{HTTP_HOST} expanded first, then ${lowercase:} convert it to
lowercase. But 1.3.14 takes %{HTTP_HOST} as normal text, skipping  expanding it and I got
a %{http_host} at last.

Here's rewrite.log I got:
>How-To-Repeat:
try to put these lines in httpd.conf:

RewriteMap lowercase int:tolower
RewriteRule ^(.+) ${lowercase:%{HTTP_HOST}}$1

and you can only get 404 error¡£
>Fix:
I'm waiting for good news from ya guys :)
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <apbugs@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]
 
 


Mime
View raw message