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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user