You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by hu...@apache.org on 2012/05/09 09:43:27 UTC
svn commit: r1335957 - in /httpd/httpd/trunk/docs/manual/rewrite:
advanced.html.en proxy.html.en
Author: humbedooh
Date: Wed May 9 07:43:26 2012
New Revision: 1335957
URL: http://svn.apache.org/viewvc?rev=1335957&view=rev
Log:
rebuild
Modified:
httpd/httpd/trunk/docs/manual/rewrite/advanced.html.en
httpd/httpd/trunk/docs/manual/rewrite/proxy.html.en
Modified: httpd/httpd/trunk/docs/manual/rewrite/advanced.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/advanced.html.en?rev=1335957&r1=1335956&r2=1335957&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/advanced.html.en (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/advanced.html.en Wed May 9 07:43:26 2012
@@ -93,10 +93,8 @@ http://physical_host_of_user1/u/user/any
<pre class="prettyprint lang-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
</pre>
</dd>
@@ -129,7 +127,7 @@ RewriteRule ^/u/<strong>([^/]+)</stron
<pre class="prettyprint lang-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]
</pre>
@@ -172,7 +170,6 @@ RewriteRule ^(.+)\.html$ /regen
<pre class="prettyprint lang-config">
RewriteEngine on
RewriteMap lb rnd:/path/to/serverlist.txt
-
RewriteRule ^/(.*) http://${lb:servers}/$1 [P,L]
</pre>
Modified: httpd/httpd/trunk/docs/manual/rewrite/proxy.html.en
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/proxy.html.en?rev=1335957&r1=1335956&r2=1335957&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/proxy.html.en (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/proxy.html.en Wed May 9 07:43:26 2012
@@ -59,7 +59,7 @@ A number of recipes are provided that de
<pre class="prettyprint lang-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/
</pre>
@@ -70,9 +70,9 @@ ProxyPassReverse /products/widget/ http:
has been migrated yet.</p>
<pre class="prettyprint lang-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/
</pre>