]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix some typo and add some extra information.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 5 Oct 2019 05:24:53 +0000 (05:24 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 5 Oct 2019 05:24:53 +0000 (05:24 +0000)
(r1866243 in trunk)
PR 63715 reported by WJCarpenter (bill-apache carpenter.org)

Align some text in examples in order to synch a bit with trunk.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1867994 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/advanced.xml

index 382a9a18ad3b02401609ba0f5d7a4256cc142641..e1950eff93974e59ef71434859c3f518fe2bdbdc 100644 (file)
@@ -94,8 +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/([^/]+)/?(.*)"   "http://${users-to-hosts:$1|server0}/u/$1/$2"
+RewriteMap    users-to-hosts      "txt:/path/to/map.users-to-hosts"
+RewriteRule   "^/u/([^/]+)/?(.*)" "http://${users-to-hosts:$1|server0}/u/$1/$2"
 </highlight>
     </dd>
   </dl>
@@ -128,7 +128,7 @@ RewriteRule   "^/u/([^/]+)/?(.*)"   "http://${users-to-hosts:$1|server0}/u/$1/$2
 <highlight language="config">
 # This example is valid in per-directory context only
 RewriteCond "%{REQUEST_URI}"   "!-U"
-RewriteRule "^(.+)\.html$"          "/regenerate_page.cgi"   [PT,L]
+RewriteRule "^(.+)\.html$"     "/regenerate_page.cgi"   [PT,L]
 </highlight>
 
     <p>The <code>-U</code> operator determines whether the test string
@@ -169,8 +169,8 @@ 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]
+RewriteMap lb        "rnd:/path/to/serverlist.txt"
+RewriteRule "^/(.*)" "http://${lb:servers}/$1"     [P,L]
 </highlight>
 
 <p><code>serverlist.txt</code> will contain a list of the servers:</p>
@@ -311,10 +311,10 @@ RewriteRule   "^foo\.html$"             "foo.night.html"
     <dt>Description:</dt>
 
     <dd>
-      <p>At time, we want to maintain some kind of status when we
+      <p>At times, we want to maintain some kind of status when we
       perform a rewrite. For example, you want to make a note that
       you've done that rewrite, so that you can check later to see if a
-      request can via that rewrite. One way to do this is by setting an
+      request came via that rewrite. One way to do this is by setting an
       environment variable.</p>
     </dd>
 
@@ -337,7 +337,10 @@ RewriteCond "%{ENV:rewritten}" "=1"
 
     <p>Note that environment variables do not survive an external
     redirect. You might consider using the [CO] flag to set a
-    cookie.</p>
+    cookie. For per-directory and htaccess rewrites, where the final
+    substitution is processed as an internal redirect, environment
+    variables from the previous round of rewriting are prefixed with
+    "REDIRECT_". </p>
 
     </dd>
   </dl>