iTP Secure WebServer System Administrator's Guide (Version 7.0)

Configuration Directives
iTP Secure WebServer System Administrator’s Guide523346-012
A-52
Region Commands
DefaultType mime-type
The DefaultType command sets the default MIME type (mime-type) for all files
in a given region. The type specified is returned by the server for any file that does
not have a matching MIME type extension (see MimeType on page A-37) or that
has no extension. The DefaultType command overrides the default specified by
the DefaultType configuration directive (see DefaultType on page A-18).
For example:
Region /cgi-bin/* {
DefaultType application/x-httpd-guardian
}
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 A-5 on
page A-50.
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
}