Scope of directives, Container directives, Directory – Oracle B12255-01 User Manual

Page 34: Container directives -4, Directory> -4

Advertising
background image

Scope of Directives

2-4

Oracle HTTP Server Administrator’s Guide

Scope of Directives

Directives placed in the main configuration files apply to the entire server. If you
wish to change the configuration for only a part of the server, you can scope your
directives by placing them in specific sections.

The following section discusses the following types of directives:

Container Directives

Block Directives

Container Directives

Container directives specify the scope within which directives take effect. The
following container directives are discussed in detail in subsequent sections:

<Directory>

<DirectoryMatch>

<Files>

<FilesMatch>

<Location>

<LocationMatch>

<Limit>

<LimitExcept>

<VirtualHost>

<Directory>

It is used to enclose a group of directives that apply only to the named directory
and subdirectories of that directory. Any directory that is allowed in a directory
context may be used. The directory is either the full path to a directory, or a
wildcard string. In a wildcard string, ? matches any single character and * matches
any sequences of characters. It is important to note that <Directory /> operated
on the whole file system, where as <Directory dir> refers to absolute
directories. <Directory> containers cannot be nested inside each other, but can
refer to directories in the document root that are nested.

Advertising