Skip to content

Commit 87d8961

Browse files
committed
mod_proxy: clarify ProxyPass ordering in Location blocks (bz#60479)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933602 13f79535-47bb-0310-9956-ffa450edef68
1 parent 029f51f commit 87d8961

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/manual/mod/mod_proxy.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,8 +1039,15 @@ ProxyPass "/mirror/foo/i" "!"
10391039
<note type="warning"><title>Ordering ProxyPass Directives in Locations</title>
10401040
<p>Only one <directive module="mod_proxy">ProxyPass</directive> directive
10411041
can be placed in a <directive module="core">Location</directive> block,
1042-
and the most specific location will take precedence.</p>
1042+
and the last matching
1043+
<directive module="core">Location</directive> block takes precedence,
1044+
following the standard
1045+
<a href="../sections.html#merging">section merging</a> rules.
1046+
Place more-specific <directive module="core">Location</directive>
1047+
blocks <em>after</em> less-specific ones to ensure the intended
1048+
<directive module="mod_proxy">ProxyPass</directive> applies.</p>
10431049
</note>
1050+
10441051
<note type="warning"><title>Exclusions and the no-proxy environment variable</title>
10451052
<p>Exclusions must come <em>before</em> the
10461053
general <directive>ProxyPass</directive> directives. In 2.4.26 and later, the "no-proxy"

0 commit comments

Comments
 (0)