iTP Secure WebServer System Administrators Guide (Version 7.5+)
Default
None. If you do not set the ExtendedLog directive, no extended log file is generated.
Example
ExtendedLog /usr/tandem/webserver/logs/httpd.log
Filemap
Syntax
Filemap [-symlink-disable] [-symlink-owner] prefix dir
Description
Use the Filemap directive to mapURLs to specific directories on the host machine. For URLs
having a path component beginning with prefix, the server translates theURL path into the name
of a file in dir. The server composes this name by replacing the prefix with dir.
If dir specifies a nonexistent directory, the server does not start.
The options are:
-symlink-disable
This option disables symbolic links to files in the specified directory. As a result, the iTP Secure
WebServer returns a message indicating that the file was 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 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.
For example, consider the Filemap directive
Filemap /admin /usr/tandem/webserver/root
Any URL having a component beginning with /admin is converted into a reference to a file in
directory /usr/tandem/webserver/root. For example, the URL
http://my.server.com/admin/welcome.html
maps to the file /usr/tandem/webserver/root/welcome.html.
You can enter more than one Filemap directive in the configuration file, with each directive
specifying a different prefix. Using this feature, you can partition major areas of server content
across different directories or disks. For example, given the directives
Filemap /encyclopedia /usr/disk0
Filemap /dictionary /usr/disk7
Filemap /accounts /G/data/accounts
the URL
http://my.server.com/encyclopedia/info/doc.html
refers to the file /usr/disk0/info/doc.html.
while the URL
http://my.server.com/dictionary/entry/aardvark.html
refers to the file /usr/disk7/entry/aardvark.html.
More than one Filemap directive is allowed in the configuration file. If two Filemap directives
have overlapping prefixes, the prefix that has the most characters matching the URL path will be
used to translate the file. For example, consider the overlapping Filemap directives
Filemap /personal /usr/disk/personal Filemap /personal/payne /udir/payne
In this case, the URL
http://my.server.com/personal/info.html
212 Configuration Directives










