FilesMatch
and LocationMatch blocks are processed at the same time as Files and Location, respectively.
DirectoryMatch blocks are processed after Directory blocks.
NOTE
NOTE
656
Running Servers Part V
Apache can also be configured to process configuration options contained within files with the name
specified in the AccessFileName directive (which is generally set to .htaccess). Directives in
access configuration files are applied to all objects under the directory they contain, including subdirectories
and their contents. Access configuration files are processed at the same time as Directory
blocks, using a similar ???most specific match??? order.
Access control files are useful for allowing users to change specific settings without having
access to the server configuration files. The configuration directives permitted within
an access configuration file are determined by the AllowOverride setting on the directory in which
they are contained. Some directives do not make sense at that level and generally result in a ???server
internal error??? message when trying to access the URI. The AllowOverride option is covered in
detail at http://httpd.apache.org/docs/mod/core.html#allowoverride.
Three directives commonly found in location blocks and access control files are DirectoryIndex,
Options, and ErrorDocument:
DirectoryIndex tells Apache which file to load when the URI contains a directory but
not a filename.
Pages:
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213