Download Apache Administrator Training

Transcript
<DirectoryMatch [Dd]ownload>
Options +Indexes
</DirectoryMatch>
Restricts the contained directives to directories that match the specified pattern. In the given example, any
directory that contains the string download or Download will have the directive applied to it.
<Files>
<FilesMatch>
Allowing you to be a little more fine-grained, you can specify a particular file or set of files. Note that the
<Files> directive takes just one file as an argument, which is perhaps not expected, given the name of the
directive. To specify more than one file, you can use FilesMatch:
<FilesMatch (one|two|three).html>
SetType text/plain
</FilesMatch>
<IfDefine>
If a particular -D variable is defined, then use this configuration. For example, you might start the server with:
httpd -DUSESSL
Then you could add a config like:
<IfDefine USESSL>
SSLEngine On
</IfDefine>
<IfModule>
Checks to see if a particular module is loaded.
<IfModule mod_perl.c>
SetHandler perl-script
</IfModule>
Note that the configuration section is completely ignored if the specified module is not loaded.
<Limit>
<LimitExcept>
Limits directive scope by method. Very seldom useful.
28