iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—522659-001
A-44
Region
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
on
page A-16.
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 pathname specified by path.
the iTP Secure WebServer composes this new pathname 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
on page A-18.
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
}
}