iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—523346-002
A-45
Region Commands
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
}
}
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.