]> granicus.if.org Git - apache/commitdiff
Remove some more old formatting and extra newlines
authorDaniel Gruno <humbedooh@apache.org>
Wed, 9 May 2012 07:41:44 +0000 (07:41 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Wed, 9 May 2012 07:41:44 +0000 (07:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1335956 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/advanced.xml
docs/manual/rewrite/proxy.xml

index 546472736175220ad7767390fd5a6ec6e8db477d..1302e8b4e5d6b4e991ca024a7ad545024b0ba6ce 100644 (file)
@@ -94,10 +94,8 @@ http://physical_host_of_user1/u/user/anypath
 
 <highlight language="config">
 RewriteEngine on
-
 RewriteMap      users-to-hosts   txt:/path/to/map.users-to-hosts
-
-RewriteRule   ^/u/<strong>([^/]+)</strong>/?(.*)   http://<strong>${users-to-hosts:$1|server0}</strong>/u/$1/$2
+RewriteRule   ^/u/([^/]+)/?(.*)   http://${users-to-hosts:$1|server0}/u/$1/$2
 </highlight>
     </dd>
   </dl>
@@ -129,7 +127,7 @@ RewriteRule   ^/u/<strong>([^/]+)</strong>/?(.*)   http://<strong>${users-to-hos
 
 <highlight language="config">
 # This example is valid in per-directory context only
-RewriteCond %{REQUEST_URI}   <strong>!-U</strong>
+RewriteCond %{REQUEST_URI}   !-U
 RewriteRule ^(.+)\.html$          /regenerate_page.cgi   [PT,L]
 </highlight>
 
@@ -172,7 +170,6 @@ RewriteRule ^(.+)\.html$          /regenerate_page.cgi   [PT,L]
 <highlight language="config">
 RewriteEngine on
 RewriteMap lb rnd:/path/to/serverlist.txt
-
 RewriteRule ^/(.*) http://${lb:servers}/$1 [P,L]
 </highlight>
 
index 6d8a314a7684ebc219fe2601e8a951d736d3f3b6..0a881f256ca864c8b90a3b35d6a325ddb9ef3227 100644 (file)
@@ -68,7 +68,7 @@ A number of recipes are provided that describe common scenarios.</p>
 <highlight language="config">
 RewriteEngine  on
 RewriteBase    /products/
-RewriteRule    ^<strong>widget/</strong>(.*)$  <strong>http://product.example.com/widget/</strong>$1  [<strong>P</strong>]
+RewriteRule    ^widget/(.*)$  http://product.example.com/widget/$1  [P]
 ProxyPassReverse /products/widget/ http://product.example.com/widget/
 </highlight>
 
@@ -78,9 +78,9 @@ ProxyPassReverse /products/widget/ http://product.example.com/widget/
    has been migrated yet.</p>
 
 <highlight language="config">
-RewriteCond %{REQUEST_FILENAME}       <strong>!-f</strong>
-RewriteCond %{REQUEST_FILENAME}       <strong>!-d</strong>
-RewriteRule ^/(.*) http://<strong>old</strong>.example.com/$1 [<strong>P</strong>]
+RewriteCond %{REQUEST_FILENAME}       !-f
+RewriteCond %{REQUEST_FILENAME}       !-d
+RewriteRule ^/(.*) http://old.example.com/$1 [P]
 ProxyPassReverse / http://old.example.com/
 </highlight>
     </dd>