iTP Secure WebServer System Administrators Guide (Version 7.5+)

To use EnableIncludes in a Region directive, enter the following:
Region * {{
EnableIncludes -restricted 1 -nesting 1
}
EncodingType code-type extension-list
The EncodingType command specifies the identifier of the encoding type ( code-type) to be
returned to a Web client requesting a file whose extension matches an extension listed in
extension-list. The returned encoding type identifies to the Web client the kind of decoding
it must perform on the file content before it can be viewed by the user. This decoding is usually a
form of decompression.
The items in extension-list are separated by blank spaces.
The EncodingType command overrides for specified regions any global specifications set for
the same items by the EncodingType directive. For further information about using the
EncodingType directive, see “EncodingType” (page 210).
Filemap [-symlink-disable] [-symlink-owner] prefix path
The Filemap command maps URLs to specific directories or files on the host machine. For URLs
having a path component beginning with prefix, the iTP Secure WebServer translates the URL
path into a new path name specified by path. the iTP Secure WebServer composes this new path
name by appending to path the URL component following prefix.
The options include:
-symlink-disable
This option disables symbolic links to files in the specified directory. As a result, the
iTP Secure WebServer returns "not found" in response to any attempt to access a
path that contains a symbolic link.
-symlink-owner
This option is similar in function to the -symlink-disable option: It also disables
symbolic links, but only if these symbolic links are owned by someone other than
the owner of the files to which the symbolic links point.
The Filemap command overrides for specified regions any global specifications set for the same
items by the Filemap directive. For further information about using the Filemap directive, see
“Filemap” (page 212).
HostMatch pattern pattern ...
Thex 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 thecontents 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” (page 214).
LanguagePreference language-tags
236 Configuration Directives