From: Mike Rumph
Date: Fri, 21 Aug 2015 00:25:46 +0000 (+0000)
Subject: Restructure ProxyPass directive documentation
X-Git-Tag: 2.4.17~195
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=029bcce83ead02e8e04871b96ca9851ef28b33ea;p=thirdparty%2Fapache%2Fhttpd.git
Restructure ProxyPass directive documentation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1696884 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index 6bd41b75665..a2ba3395919 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -869,6 +869,14 @@ expressions
Note: The path associated with the unix:
URL is DefaultRuntimeDir aware.
+ When used inside a Location section, the first argument is omitted and the local
+ directory is obtained from the Location. The same will occur inside a
+ LocationMatch section;
+ however, ProxyPass does not interpret the regexp as such, so it is necessary
+ to use ProxyPassMatch in this situation instead.
+
Suppose the local server has address http://example.com/
;
then
@@ -882,6 +890,14 @@ expressions
http://example.com/mirror/foo/bar
to be internally converted
into a proxy request to http://backend.example.com/bar
.
+ The ProxyPass directive is not supported in Directory or Files sections.
+
+ If you require a more flexible reverse-proxy configuration, see the
+ RewriteRule directive with the
+ [P]
flag.
+
The following alternative syntax is possible; however, it can carry a
performance penalty when present in very large numbers. The advantage of
the below syntax is that it allows for dynamic control via the
@@ -938,6 +954,8 @@ ProxyPass "/mirror/foo" "http://backend.example.com"
+
ProxyPass key=value
Parameters
+
In Apache HTTP Server 2.1 and later, mod_proxy supports pooled
connections to a backend server. Connections created on demand
can be retained in a pool for future use. Limits on the pool size
@@ -1275,6 +1293,8 @@ ProxyPass "/" "balancer://hotcluster/"
</Proxy>
+
Additional ProxyPass Keywords
+
Normally, mod_proxy will canonicalise ProxyPassed URLs.
But this may be incompatible with some backends, particularly those
that make use of PATH_INFO. The optional nocanon
@@ -1288,22 +1308,6 @@ ProxyPass "/" "balancer://hotcluster/"
The optional noquery keyword (available in
httpd 2.4.1 and later) prevents this.
- When used inside a Location section, the first argument is omitted and the local
- directory is obtained from the Location. The same will occur inside a
- LocationMatch section;
- however, ProxyPass does not interpret the regexp as such, so it is necessary
- to use ProxyPassMatch in this situation instead.
-
- This directive is not supported in Directory or Files sections.
-
- If you require a more flexible reverse-proxy configuration, see the
- RewriteRule directive with the
- [P]
flag.
-
The optional interpolate keyword, in combination with
ProxyPassInterpolateEnv, causes the ProxyPass
to interpolate environment variables, using the syntax