]> granicus.if.org Git - apache/commit
Restore functionality broken by the mod_rewrite security fix:
authorTony Finch <fanf@apache.org>
Wed, 18 Oct 2000 04:50:25 +0000 (04:50 +0000)
committerTony Finch <fanf@apache.org>
Wed, 18 Oct 2000 04:50:25 +0000 (04:50 +0000)
commit78802fd943d27dc36a2f762ebf3a6c89a3db995f
tree7aadfce78c88d13c7d91d718f751b4189bdf309c
parent7b2aa25b8e483014d41aaa5a4310a7c53a6532ad
Restore functionality broken by the mod_rewrite security fix:
rewrite map lookup keys and default values are now expanded
so that the lookup can depend on the requested URI etc.

Because the new code is recursive you can now write configurations
like the following (with nested map lookups) which wasn't directly
possible before -- you had to use a RewriteCond and a %N backref
instead, as in http://www.apache.org/docs/vhosts/mass.html#xtra-conf

RewriteMap tolower int:tolower
RewriteMap host2user txt:/home/www/conf/virtusertbl
RewriteRule /(.*) /home/${host2user:${tolower:%{HTTP_HOST}}|www}/public_html

PR: 6671

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86638 13f79535-47bb-0310-9956-ffa450edef68
modules/mappers/mod_rewrite.c
modules/mappers/mod_rewrite.h