|
Apache HTTP Server Version 1.3How Directory, Location and Files sections workThe sections<Directory> , <Location> and <Files> can contain
directives which only apply to specified directories, URLs or files
respectively. Also htaccess files can be used inside a directory to
apply directives to that directory. This document explains how these
different sections differ and how they relate to each other when
Apache decides which directives apply for a particular directory or
request URL.
Directives allowed in the sectionsEverything that is syntactically allowed in<Directory> is also allowed in
<Location> (except a sub-<Files>
section, but the code doesn't test for that, Lars has an open bug
report on that). Semantically however some things, and the most
notable is AllowOverride, make no sense in
<Location> . The same for
<Files> -- syntactically everything is fine, but
semantically some things are different.
How the sections are mergedThe order of merging is:
<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. If multiple
<Directory> sections apply to the same directory
they they are processed in the configuration file order. The
configuration files are read in the order httpd.conf, srm.conf and
access.conf. Configurations included via the Include
directive will be treated as if they where inside the including file
at the location of the Include directive.
Sections inside Notes about using sectionsThe general guidelines are:
Another note:
Apache HTTP Server Version 1.3 |
|||||||||||||||||
With any suggestions or questions please feel free to contact us |