]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
* Add a note about trailing slashes for ProxyPass and fix the balancer example
authorRuediger Pluem <rpluem@apache.org>
Thu, 25 May 2006 20:14:52 +0000 (20:14 +0000)
committerRuediger Pluem <rpluem@apache.org>
Thu, 25 May 2006 20:14:52 +0000 (20:14 +0000)
  accordingly.

PR: 39203

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

docs/manual/mod/mod_proxy.html.en
docs/manual/mod/mod_proxy.xml

index 4968faeb6cbcf567cbfd11530b010091b93d9581..45ee998f21ab717341a11f52e1440530349c7565 100644 (file)
@@ -674,6 +674,14 @@ through</td></tr>
     <code>http://example.com/mirror/foo/bar</code> to be internally converted
     into a proxy request to <code>http://backend.example.com/bar</code>.</p>
 
+    <div class="warning">
+    <p>If the first argument ends with a trailing <strong>/</strong>, the second
+       argument should also end with a trailing <strong>/</strong> and vice
+       versa. Otherwise the resulting requests to the backend may miss some
+       needed slashes and do not deliver the expected results.
+    </p>
+    </div>
+
     <p>The <code>!</code> directive is useful in situations where you don't want
     to reverse-proxy a subdirectory, <em>e.g.</em></p>
 
@@ -858,7 +866,7 @@ through</td></tr>
     </table>
     <div class="example"><p><code>
       ProxyPass /special-area http://special.example.com/ smax=5 max=10<br />
-      ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On<br />
+      ProxyPass / balancer://mycluster/ stickysession=jsessionid nofailover=On<br />
       &lt;Proxy balancer://mycluster&gt;<br />
       <span class="indent">
         BalancerMember http://1.2.3.4:8009<br />
index 487ab0ea13ab06fc6a132942c6cef20beb086f7b..e5ad63a02da48864dcbf76126ff60cea240ad58c 100644 (file)
@@ -489,6 +489,14 @@ expressions</description>
     <code>http://example.com/mirror/foo/bar</code> to be internally converted
     into a proxy request to <code>http://backend.example.com/bar</code>.</p>
 
+    <note type="warning">
+    <p>If the first argument ends with a trailing <strong>/</strong>, the second
+       argument should also end with a trailing <strong>/</strong> and vice
+       versa. Otherwise the resulting requests to the backend may miss some
+       needed slashes and do not deliver the expected results.
+    </p>
+    </note>
+
     <p>The <code>!</code> directive is useful in situations where you don't want
     to reverse-proxy a subdirectory, <em>e.g.</em></p>
 
@@ -673,7 +681,7 @@ expressions</description>
     </table>
     <example>
       ProxyPass /special-area http://special.example.com/ smax=5 max=10<br />
-      ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On<br />
+      ProxyPass / balancer://mycluster/ stickysession=jsessionid nofailover=On<br />
       &lt;Proxy balancer://mycluster&gt;<br />
       <indent>
         BalancerMember http://1.2.3.4:8009<br />