From: Luca Toscano
Apart from <Directory>
, each group is processed in
- the order that they appear in the configuration files. <Directory>
(group 1 above)
- is processed in the order shortest directory component to longest.
- So 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. Configurations included via the Include
directive will be treated as if
- they were inside the including file at the location of the
- Include
directive.
Sections inside <VirtualHost>
sections
- are applied after the corresponding sections outside
- the virtual host definition. This allows virtual hosts to
- override the main server configuration.
When the request is served by mod_proxy
, the
- <Proxy>
- container takes the place of the <Directory>
container in the processing
- order.
Some important remarks:
+<Directory>
, within each group the sections are
+ processed in the order they appear in the configuration files.
+ For example, a request for /foo will match
+ <Location "/foo/bar">
and
+ <Location "/foo">
(group 4 in this case):
+ both sections will be evaluated
+ 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,
+ <Directory "/var/web/dir">
will be processed before
+ <Directory "/var/web/dir/subdir">
.<Directory>
sections apply
+ to the same directory they are processed in the configuration file
+ order.Include
directive will be treated as if
+ they were inside the including file at the location of the
+ Include
directive.<VirtualHost>
sections
+ are applied after the corresponding sections outside
+ the virtual host definition. This allows virtual hosts to
+ override the main server configuration.mod_proxy
, the
+ <Proxy>
+ container takes the place of the <Directory>
container in the processing
+ order.