From: Eric Covener Date: Mon, 11 Oct 2010 19:15:01 +0000 (+0000) Subject: Merge r1021468 from https://svn.apache.org/repos/asf/httpd/httpd/trunk/: X-Git-Tag: 2.2.17~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f31773ddcab1c6b52ed4cb726122f1f5349b16a;p=thirdparty%2Fapache%2Fhttpd.git Merge r1021468 from https://svn.apache.org/repos/asf/httpd/httpd/trunk/: Caution against using non-regex ProxyPass inside of a container. PR#50048 Submitted By: Luke Meyer Reviewed By: Eric Covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1021471 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index 62a91c6a74b..62434285fe3 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -1179,7 +1179,10 @@ through for complex rules.

When used inside a <Location> section, the first argument is omitted and the local - directory is obtained from the <Location>.

+ 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.

If you require a more flexible reverse-proxy configuration, see the RewriteRule directive with the @@ -1259,6 +1262,13 @@ through

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

+

When used inside a <LocationMatch> section, the first argument is omitted and the + regexp is obtained from the <LocationMatch>.

+ +

If you require a more flexible reverse-proxy configuration, see the + RewriteRule directive with the + [P] flag.

+
top

ProxyPassReverse Directive

@@ -1323,7 +1333,10 @@ proxied server

When used inside a <Location> section, the first argument is omitted and the local - directory is obtained from the <Location>.

+ directory is obtained from the <Location>. The same occurs inside a <LocationMatch> section, but will probably not work as + intended, as ProxyPassReverse will interpret the regexp literally as a + path; if needed in this situation, specify the ProxyPassReverse outside + the section, or in a separate <Location> section.

top
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml index 815e18ae34c..18e95c35c36 100644 --- a/docs/manual/mod/mod_proxy.xml +++ b/docs/manual/mod/mod_proxy.xml @@ -1036,7 +1036,10 @@ expressions

When used inside a Location section, the first argument is omitted and the local directory is obtained from the Location.

+ >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.

If you require a more flexible reverse-proxy configuration, see the RewriteRule directive with the @@ -1088,6 +1091,15 @@ expressions

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

+ +

When used inside a LocationMatch section, the first argument is omitted and the + regexp is obtained from the LocationMatch.

+ +

If you require a more flexible reverse-proxy configuration, see the + RewriteRule directive with the + [P] flag.

@@ -1159,7 +1171,12 @@ proxied server

When used inside a Location section, the first argument is omitted and the local directory is obtained from the Location.

+ >Location. The same occurs inside a LocationMatch section, but will probably not work as + intended, as ProxyPassReverse will interpret the regexp literally as a + path; if needed in this situation, specify the ProxyPassReverse outside + the section, or in a separate Location section.