iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuration Directives
iTP Secure WebServer System Administrator’s Guide—522659-001
A-21
IndexFile
IndexFile
Syntax
IndexFile filename1 filename2 ...
Description
Use the IndexFile directive to specify the file the server is to return whenever a URL
refers to a directory instead of to a file. Typically the IndexFile directive is set to a
file that contains an index or other description of the contents of the directory being
referred to by the URL.
For example, if your server receives the URL
http://www.myserver.com/foo/
and that the server configuration file (httpd.config) specifies
IndexFile index.html welcome.html
in response to this URL, which does not specify a particular file in directory /foo, the
server will look for a file named index.html in /foo, as if the full URL were
http://my.server.com/foo/index.html
If this file does not exist, the server will try to find in /foo the next file specified in the
IndexFile directive, as if the full URL were now
http://my.server.com/foo/welcome.html
If neither of these files exist, and if no IndexFile directive is specified in the
configuration file, and the DirIndex command of the Region directive is not present, the
server returns an error message to the web client saying that access has been denied.
Only one IndexFile directive is allowed in the configuration file.
Default
None.
Example
IndexFile index.html welcome.html