]> granicus.if.org Git - apache/blobdiff - docs/manual/rewrite/proxy.html.en
Quote path/URL arguments to Proxy* directives.
[apache] / docs / manual / rewrite / proxy.html.en
index 5815161d032543e6fb5564c0fcbb8a6866534eac..6c7e08d009290133301300a98b2c9eb82f74503d 100644 (file)
@@ -59,7 +59,7 @@ A number of recipes are provided that describe common scenarios.</p>
 <pre class="prettyprint lang-config">RewriteEngine  on
 RewriteBase    /products/
 RewriteRule    ^widget/(.*)$  http://product.example.com/widget/$1  [P]
-ProxyPassReverse /products/widget/ http://product.example.com/widget/</pre>
+ProxyPassReverse "/products/widget/" "http://product.example.com/widget/"</pre>
 
 
    <p>In the second example, we proxy the request only if we can't find
@@ -70,7 +70,7 @@ ProxyPassReverse /products/widget/ http://product.example.com/widget/</pre>
 <pre class="prettyprint lang-config">RewriteCond %{REQUEST_FILENAME}       !-f
 RewriteCond %{REQUEST_FILENAME}       !-d
 RewriteRule ^/(.*) http://old.example.com/$1 [P]
-ProxyPassReverse / http://old.example.com/</pre>
+ProxyPassReverse "/" "http://old.example.com/"</pre>
 
     </dd>