httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Update of "RewriteMap" by RichBowen
Date Thu, 30 Sep 2010 18:18:52 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.

The "RewriteMap" page has been changed by RichBowen.
The comment on this change is: Nope. %2 was right the first time. There's no $2 defined in
this scenario..
http://wiki.apache.org/httpd/RewriteMap?action=diff&rev1=8&rev2=9

--------------------------------------------------

  RewriteMap sub prg:/physical/path/to/rwmap.pl
  RewriteLock  /var/lock/map.sub.lock
  RewriteCond %{HTTP_HOST} ^(www\.)?([a-z.-]+)\.example\.com
- RewriteRule ^/(.*) /home/www/htdocs/hosts/${sub:$2}$1 [L]
+ RewriteRule ^/(.*) /home/www/htdocs/hosts/${sub:%2}$1 [L]
  }}}
  rwmap.pl:
  {{{

Mime
View raw message