From: Ken Coar
Date: Wed, 15 Apr 2015 06:10:07 +0000 (+0000)
Subject: A little syntax fixup, and put quotation marks around
X-Git-Tag: 2.5.0-alpha~3298
X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8deec4dee4292233fdef0a734410b85a59d2db95;p=thirdparty%2Fapache%2Fhttpd.git
A little syntax fixup, and put quotation marks around
patterns and expressions.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673653 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/rewrite/avoid.xml b/docs/manual/rewrite/avoid.xml
index d71eb138495..c15ddcdcd09 100644
--- a/docs/manual/rewrite/avoid.xml
+++ b/docs/manual/rewrite/avoid.xml
@@ -90,7 +90,9 @@ and /one/three/four.html.
To redirect URLs under /one to
http://one.example.com, do the following:
-Redirect /one/ http://one.example.com/
+
+Redirect "/one/" "http://one.example.com/"
+
To redirect http URLs to https, do the
following:
@@ -98,7 +100,7 @@ following:
<VirtualHost *:80>
ServerName www.example.com
- Redirect / https://www.example.com/
+ Redirect "/" "https://www.example.com/"
</VirtualHost >
<VirtualHost *:443>
@@ -130,7 +132,9 @@ is possible to perform this mapping with mod_rewrite,
and performance.
Using Alias
-Alias /cats /var/www/virtualhosts/felines/htdocs
+
+Alias "/cats" "/var/www/virtualhosts/felines/htdocs"
+
@@ -173,7 +177,7 @@ href="flags.html#flag_p">[P] flag to pass rewritten URIs through
mod_proxy.
-RewriteRule ^/?images(.*) http://imageserver.local/images$1 [P]
+RewriteRule "^/?images(.*)" "http://imageserver.local/images$1" [P]
However, in many cases, when there is no actual pattern matching
@@ -182,7 +186,7 @@ module="mod_proxy">ProxyPass directive is a better choice.
The example here could be rendered as:
-ProxyPass /images/ http://imageserver.local/images/
+ProxyPass "/images/" "http://imageserver.local/images/"
Note that whether you use ProxyPass, you'll still need to use the
catch redirects issued from the back-end server:
-ProxyPassReverse /images/ http://imageserver.local/images/
+ProxyPassReverse "/images/" "http://imageserver.local/images/"
You may need to use RewriteRule instead when there are
@@ -218,7 +222,7 @@ module="core" type="section">If directive, as shown here:
<If "req('Host') != 'www.example.com'">
- Redirect / http://www.example.com/
+ Redirect "/" "http://www.example.com/"
</If>