iTP Secure WebServer System Administrators Guide (Version 7.5+)

In this example, the default MIME type for all files in directory /cgi-bin is set to
application/x-httpd-guardian.
Deny [-noexist]
The Deny command returns an "access denied" message to a Web client. No additional commands
within the Region directive are evaluated.
If you specify the -noexist option, the Deny command returns a "not found" message instead
of an "access denied" message.
For example, the command in the following directive denies access to any client making a request
for an object below the directory /admin:
Region /admin/* {
Deny
}
DenyHost [-noexist] host-pattern ...
The DenyHost command returns an "access denied" message if a Web client's host or IP address
matches one of the specified host patterns (host-pattern...). If the Web client's host name
or IP address matches, no additional commands within the directive are evaluated. In specifying
a host pattern, you can use the special matching characters listed in Table 33 (page 233).
If you specify the -noexist option, the DenyHost command returns a "not found" message
instead of an "access denied" message.
For example, the following command denies access to all objects on the server for any hosts from
the domain server.org:
Region * {
DenyHost *.server.org
}
DirectoryIndex
The DirectoryIndex command enables automatic generation of directory indexes. If a request
refers to a directory for which there is no existing index, an index of the files in the directory is
generated automatically.
For example, the command in the following directive enables automatic index generation for
requests for any directories under the directory /personal:
Region /personal/* {
DirectoryIndex
}
EnableIncludes [-restricted] [-nesting level]
The EnableIncludes command permits the full or partial use of server-side includes (SSIs) on
particular regions. For information about setting up SSIs on the server, see “Setting Up a Server-Side
Include (SSI)” (page 130)
The EnableIncludes command accepts the following arguments:
-restricted
Use the -restricted argument to fully enable the use of SSIs on a given region,
including the use of the exec command (see “SSI Directives” (page 131)). If you
specify the EnableIncludes command without the -restricted argument,
SSIs are enabled for the given region but the exec command is disabled.
-nesting level
Use the -nesting argument to specify the number of nesting levels (level) allowed
in a document include. The default is 3, meaning, for example, that document 1
can include document 2, which can include document 3, which can include
document 4 (four documents, three levels of nesting).
By default, SSIs are fully disabled.
Region 235