From: Ruediger Pluem Date: Thu, 25 May 2006 20:14:52 +0000 (+0000) Subject: * Add a note about trailing slashes for ProxyPass and fix the balancer example X-Git-Tag: 2.3.0~2382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9612fc346091cc3665fad2de31af508b1aa943f;p=thirdparty%2Fapache%2Fhttpd.git * Add a note about trailing slashes for ProxyPass and fix the balancer example accordingly. PR: 39203 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@409455 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index 4968faeb6cb..45ee998f21a 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -674,6 +674,14 @@ through http://example.com/mirror/foo/bar to be internally converted into a proxy request to http://backend.example.com/bar.

+
+

If the first argument ends with a trailing /, the second + argument should also end with a trailing / and vice + versa. Otherwise the resulting requests to the backend may miss some + needed slashes and do not deliver the expected results. +

+
+

The ! directive is useful in situations where you don't want to reverse-proxy a subdirectory, e.g.

@@ -858,7 +866,7 @@ through

ProxyPass /special-area http://special.example.com/ smax=5 max=10
- ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On
+ ProxyPass / balancer://mycluster/ stickysession=jsessionid nofailover=On
<Proxy balancer://mycluster>
BalancerMember http://1.2.3.4:8009
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 487ab0ea13a..e5ad63a02da 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -489,6 +489,14 @@ expressions http://example.com/mirror/foo/bar to be internally converted into a proxy request to http://backend.example.com/bar.

+ +

If the first argument ends with a trailing /, the second + argument should also end with a trailing / and vice + versa. Otherwise the resulting requests to the backend may miss some + needed slashes and do not deliver the expected results. +

+
+

The ! directive is useful in situations where you don't want to reverse-proxy a subdirectory, e.g.

@@ -673,7 +681,7 @@ expressions ProxyPass /special-area http://special.example.com/ smax=5 max=10
- ProxyPass / balancer://mycluster stickysession=jsessionid nofailover=On
+ ProxyPass / balancer://mycluster/ stickysession=jsessionid nofailover=On
<Proxy balancer://mycluster>
BalancerMember http://1.2.3.4:8009