1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

Should be a leading slash on that regex. Thanks to Bob Ionescu.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832826 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rich Bowen
2009-11-04 18:13:15 +00:00
parent a9dcd4c693
commit b2a91602be
2 changed files with 2 additions and 2 deletions

View File

@@ -326,7 +326,7 @@ HostnameLookups on
RewriteEngine on
RewriteMap multiplex txt:/path/to/map.mirrors
RewriteCond %{REMOTE_HOST} ([a-z]+)$ [NC]
RewriteRule ^(.*)$ ${multiplex:<strong>%1</strong>|http://www.example.com/}$1 [R,L]
RewriteRule ^/(.*)$ ${multiplex:<strong>%1</strong>|http://www.example.com/}$1 [R,L]
</pre></div>
<div class="example"><pre>

View File

@@ -327,7 +327,7 @@ HostnameLookups on
RewriteEngine on
RewriteMap multiplex txt:/path/to/map.mirrors
RewriteCond %{REMOTE_HOST} ([a-z]+)$ [NC]
RewriteRule ^(.*)$ ${multiplex:<strong>%1</strong>|http://www.example.com/}$1 [R,L]
RewriteRule ^/(.*)$ ${multiplex:<strong>%1</strong>|http://www.example.com/}$1 [R,L]
</pre></example>
<example><pre>