From: Rich Bowen Date: Fri, 14 Jan 2011 21:15:44 +0000 (+0000) Subject: Remove unnecessary
 tags in  blocks.
X-Git-Tag: 2.3.11~200
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b15efce950a0b74448a789ca646c20b803141755;p=thirdparty%2Fapache%2Fhttpd.git

Remove unnecessary 
 tags in  blocks.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1059171 13f79535-47bb-0310-9956-ffa450edef68
---

diff --git a/docs/manual/rewrite/proxy.xml b/docs/manual/rewrite/proxy.xml
index 8d94a5f95f0..89c7676d08f 100644
--- a/docs/manual/rewrite/proxy.xml
+++ b/docs/manual/rewrite/proxy.xml
@@ -65,24 +65,24 @@ A number of recipes are provided that describe common scenarios.

To simply map a URL to another server, we use the [P] flag, as follows:

-
-RewriteEngine  on
-RewriteBase    /products/
-RewriteRule    ^widget/(.*)$  http://product.example.com/widget/$1  [P]
+
+RewriteEngine  on
+RewriteBase /products/
+RewriteRule ^widget/(.*)$ http://product.example.com/widget/$1 [P]
ProxyPassReverse /products/widget/ http://product.example.com/widget/ -
+

In the second example, we proxy the request only if we can't find the resource locally. This can be very useful when you're migrating from one server to another, and you're not sure if all the content has been migrated yet.

-
-RewriteCond %{REQUEST_FILENAME}       !-f
-RewriteCond %{REQUEST_FILENAME}       !-d
-RewriteRule ^/(.*) http://old.example.com$1 [P]
+
+RewriteCond %{REQUEST_FILENAME}       !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule ^/(.*) http://old.example.com$1 [P]
ProxyPassReverse / http://old.example.com/ -
+
Discussion:
diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index 423ef5d763e..1a3b5411834 100644 --- a/docs/manual/rewrite/remapping.xml +++ b/docs/manual/rewrite/remapping.xml @@ -154,7 +154,7 @@ RewriteRule ^/docs/(.+) http://new.example.com/docs/$1 [R,L] RedirectMatch ^/docs/(.*) http://new.example.com/docs/$1 -With Redirect
+With Redirect
 Redirect /docs/ http://new.example.com/docs/
 
     
diff --git a/docs/manual/rewrite/rewritemap.xml b/docs/manual/rewrite/rewritemap.xml
index d8bd1a8bdcd..ff26edee6df 100644
--- a/docs/manual/rewrite/rewritemap.xml
+++ b/docs/manual/rewrite/rewritemap.xml
@@ -155,17 +155,15 @@ may be used, and give examples of each.

the following:

Product to ID map -
-##
-##  productmap.txt - Product to ID map file
-##
-
-television 993
-stereo     198
-fishingrod 043
-basketball 418
+##
+## productmap.txt - Product to ID map file
+##
+
+television 993
+stereo 198
+fishingrod 043
+basketball 418
telephone 328 -

Thus, when http://example.com/product/television is @@ -208,14 +206,12 @@ telephone 328 else is sent to one of the 'dynamic' pool.

Rewrite map file -
-##
-##  map.txt -- rewriting map
-##
-
-static   www1|www2|www3|www4
+##
+## map.txt -- rewriting map
+##
+
+static www1|www2|www3|www4
dynamic www5|www6 -
Configuration directives