From: Luca Toscano Date: Fri, 30 Mar 2018 15:43:58 +0000 (+0000) Subject: docs rebuild X-Git-Tag: 2.5.0-alpha2-ci-test-only~2734 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8f80fe1b284164f24583925703f8fa7fc7726d6;p=thirdparty%2Fapache%2Fhttpd.git docs rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1828070 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_proxy.html.en b/docs/manual/mod/mod_proxy.html.en index 0878db4cec9..e9cfbf76cad 100644 --- a/docs/manual/mod/mod_proxy.html.en +++ b/docs/manual/mod/mod_proxy.html.en @@ -1111,6 +1111,18 @@ ProxyPass "/mirror/foo" "http://backend.example.com" backend.example.com except requests made to /mirror/foo/i.

+

Mixing ProxyPass settings in different contexts does not work:

+
ProxyPass "/mirror/foo/i" "!"
+<Location "/mirror/foo/">
+    ProxyPass "http://backend.example.com/"
+</Location>
+ +

In this case, a request to /mirror/foo/i will get proxied, + because the ProxyPass directive in the Location block will be evaluated + first. The fact that ProxyPass supports both server and directory contexts + does not mean that their scope and position in the configuration file will + guarantee any ordering or override.

+

Ordering ProxyPass Directives

The configured ProxyPass and ProxyPassMatch @@ -1119,12 +1131,15 @@ ProxyPass "/mirror/foo" "http://backend.example.com" ProxyPass rules starting with the longest URLs first. Otherwise, later rules for longer URLS will be hidden by any earlier rule which uses a leading substring of the URL. Note that - there is some relation with worker sharing. In contrast, only one - ProxyPass directive can be placed - in a Location block, and the most - specific location will take precedence.

- -

For the same reasons, exclusions must come before the + there is some relation with worker sharing.

+
+

Ordering ProxyPass Directives in Locations

+

Only one ProxyPass directive + can be placed in a Location block, + and the most specific location will take precedence.

+
+

Exclusions and the no-proxy environment variable

+

Exclusions must come before the general ProxyPass directives. In 2.4.26 and later, the "no-proxy" environment variable is an alternative to exclusions, and is the only way to configure an exclusion of a ProxyPass