From: Rich Bowen
Date: Fri, 1 May 2026 20:42:20 +0000 (+0000)
Subject: Bug 65056: Clarify section merging: Directory ordering is independent of config order...
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a48b129d33b6b43191abdddd7bd729dac754272;p=thirdparty%2Fapache%2Fhttpd.git
Bug 65056: Clarify section merging: Directory ordering is independent of config order; config-file ordering applies to all section types; VirtualHost is selected, not merged
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1933693 13f79535-47bb-0310-9956-ffa450edef68
---
diff --git a/docs/manual/sections.xml b/docs/manual/sections.xml
index 1689f26ff8..e2da71e08f 100644
--- a/docs/manual/sections.xml
+++ b/docs/manual/sections.xml
@@ -499,13 +499,20 @@ are interpreted, it is important to understand how this works.
but in the order they appear in the configuration files.
Directory
(group 1 above) is processed in the order shortest directory
- component to longest. For example,
+ component to longest (regardless of the order in which they
+ appear in the configuration file). For example,
<Directory "/var/web/dir"> will be processed before
<Directory "/var/web/dir/subdir">.
If multiple Directory sections apply
to the same directory they are processed in the configuration file
- order.
+ order. The same applies when multiple
+ DirectoryMatch,
+ Files,
+ FilesMatch,
+ Location, or
+ LocationMatch
+ sections match the same resource.
Configurations included via the Include directive will be treated as if
they were inside the including file at the location of the
@@ -514,7 +521,13 @@ are interpreted, it is important to understand how this works.
module="core">VirtualHost sections
are applied after the corresponding sections outside
the virtual host definition. This allows virtual hosts to
- override the main server configuration.
+ override the main server configuration. Note that unlike the
+ other section types, only one
+ VirtualHost
+ is selected per request â directives from multiple matching
+ vhosts are never merged. See
+ virtual host matching
+ for details on how a vhost is selected.
When the request is served by mod_proxy, the
Proxy
container takes the place of the