Oracle B12255-01 Manual Do Utilizador

Página de 224
Scope of Directives
Oracle HTTP Server Concepts
2-5
<DirectoryMatch>
It should be used when specifying regular expressions, instead of using the tilde
form of <Directory> with wildcards in the directory specification. The following
two examples have the same result, matching directories starting with web and
ending with a number from 1 to 9:
<Directory ~/web[1-9]/>
<DirectoryMatch "/web[1-9]/">
<Files>
The <Files file> and </Files> directives support access control by filename.
It is comparable to the
 directives. The directives
given within this section can be applied to any object within a base name (the last
component of the filename) matching the specified file name. <Files> sections are
processed in the order that they appear in the configuration file, after the
<Directory> sections, and .htaccess files are read, but before <Location>
sections. Note that the <Files> directives can be nested inside <Directory>
sections to restrict the portion of the file system to which they apply.
<FilesMatch>
Provides access control by filename, just as the
directive does. However, it
accepts regular expression.
<Location>
Limits the application of the directives within a block to those URLs specified,
rather than to the physical file location like the
 directive.
<Location> sections are processed in the order that they appear in the
configuration file, after the <Directory> sections and .htaccess files are read,
and after the
 sections. <Location> accepts wildcard directories and
regular expressions with the tilde character.