iTP Secure WebServer System Administrator's Guide (Version 7.0)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-012
A-55
Region Commands
HostMatch pattern pattern ...
The HostMatch command returns 1 (indicating true) if the Web client’s host name
or IP address matches one of the specified patterns (pattern); otherwise it
returns 0 (indicating false). For example:
Region / {
if [HostMatch *.widget.com] {
Redirect /widget-welcome.html
}
}
In this example, any homepage requests from *.widget.com are redirected to a
special homepage.
IndexFile filename1 filename2 ...
The IndexFile command specifies the file the iTP Secure WebServer is to return
whenever a URL refers to a directory instead of to a specific file. Typically, the
IndexFile command is set to a file that contains an index or other description of
the contents of the directory being referred to by the URL.
The IndexFile command overrides for specified regions any global
specifications set for the same items by the IndexFile directive. For further
information about using the IndexFile directive, see IndexFile on page A-24.
LanguagePreference language-tags
The LanguagePreference command specifies the natural languages that the
server will favor when making content negotiation decisions for the iTP Secure
WebServer environment or a region. Content negotiation is a protocol feature
defined in the HTTP/1.1 specification.
The server consults this directive only if the configuration file also contains a
Negotiation directive with the Lang or Mult argument, and only if the client sends a
request without an Accept-language header.
The language-tags consist of one or more RFC 2068 language tags, separated
by commas with no intervening spaces. List the tags in order of preference and
enclose the list in braces {}.
To see RFC 2068, use the following URL:
http://www.cis.ohio-state.edu/htbin/rfc/rfc2068.html
The LanguagePreference command overrides for specified regions any global
specifications set for the same items by the LanguagePreference directive. For
further information about the LanguagePreference directive, see
LanguagePreference on page A-28.
LogItem item-name item-value
The LogItem command causes the value (item-value) associated with a user-
defined log item (item-name) to be written to the extended log file for the current