iTP Secure WebServer System Administrator's Guide (iTPWebSvr 6.0+)

Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide523346-002
7-12
Mapping Requests to Contents
the URL
http://my.server.com/encyclopedia/info/doc.html
will refer to the file
/usr/disk0/info/doc.html
while the URL
http://my.server.com/dictionary/entry/ants.html
will refer to the file
/usr/disk7/entry/ants.html
Handling Directory Accesses
A URL can refer to a directory instead of a specific object. For example:
http://my.server.com:8080/personal/tootie/
When a URL refers to a directory, the server looks for an index file within the directory
being requested. The specific index file the server looks for is determined by the
setting of the IndexFile directive. For example, if your server receives a directory
request, and the directive
IndexFile index.html welcome.html
is specified in the server configuration file (httpd.config), your server searches first
for the index file index.html within the specified directory. If it finds this file, it returns
the content to the web client. Otherwise, it searches for the specified alternative index
file, welcome.html. If your server cannot find this file, it returns an error message to
the web client (unless automatic indexing is specified; see Enabling Automatic
Directory Indexing on page 7-34).
For complete information on the IndexFile directive, see Appendix A, Configuration
Directives.
A common use of index files is to establish home pages that apply to a server’s entire
contents. For example, the following directives might be specified in a configuration
file:
Filemap / /usr/tandem/webserver/root/
IndexFile index.html
When a web client makes a request to this server through the home page URL
http://www.widgets.com/
the server returns the file index.html contained in
/usr/tandem/webserver/root
You can configure your server to automatically generate an index file whenever the
server cannot locate an index file within an accessed directory. This generated index
file lists all the files currently residing in the accessed directory. For complete