From: Eric Covener
Date: Mon, 11 Oct 2010 19:12:13 +0000 (+0000)
Subject: Caution against using non-regex ProxyPass inside of a container.
X-Git-Tag: 2.3.9~342
X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bb719ec746b5ff8ba55f026bb870e2df5152c7f4;p=thirdparty%2Fapache%2Fhttpd.git
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/trunk@1021468 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en
index 4ea568d945b..c17d88defda 100644
--- a/docs/manual/mod/mod_proxy.html.en
+++ b/docs/manual/mod/mod_proxy.html.en
@@ -1177,7 +1177,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
@@ -1255,6 +1258,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.
+
@@ -1319,7 +1329,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.
diff --git a/docs/manual/mod/mod_proxy.xml b/docs/manual/mod/mod_proxy.xml
index bea29108e35..e1caaa28c58 100644
--- a/docs/manual/mod/mod_proxy.xml
+++ b/docs/manual/mod/mod_proxy.xml
@@ -1050,7 +1050,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
@@ -1100,6 +1103,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.
@@ -1171,7 +1183,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.