iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-002
A-42
Region Commands
The setting of an AddCGI command has no effect on server objects that are not
CGI programs.
For more information about CGI environment variables, see Section 8, Using
Common Gateway Interface (CGI) Programs.
AllowHost [-noexist] host-pattern ...
The AllowHost command returns an “access denied” message if a web client's
host or IP address does not match one of the specified host patterns
(host-pattern...). If the web client’s host name or IP address does not match,
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-41.
If you specify the -noexist option, the AllowHost command returns a “not
found” message instead of an “access denied” message.
For example, the command in the following directive restricts access to the
/admin/ section of the server to hosts in the domain company.com:
Region /admin/ {
AllowHost *.company.com
}
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-30) or that
has no extension. The DefaultType command overrides the default specified by
the DefaultType configuration directive (see DefaultType on page A-15).
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.