iTP Secure WebServer System Administrator's Guide (Version 7.0)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—523346-012
7-36
Enabling Automatic Directory Indexing
Enabling Automatic Directory Indexing
You can enable automatic indexing for server directories. Under automatic indexing, if
a request corresponds to a directory for which no index file is available, the server
automatically generates one.
To enable automatic indexing, you use the DirectoryIndex command in a Region
directive. For example, this directive enables indexing for all directories on the server:
Region * {
DirectoryIndex
}
This example shows an index generated under automatic directory indexing:
NameLast ModifiedSize
-------------------------------------------------------
../26-Mar-9510:14
CVS/17-Mar-9513:44
a-very-long-file-name-test17-Mar-9512:OK
size-100000.html17-Mar-9512:1597K
subdir/17-Mar-9513:44
test.html17-Mar-9512:15OK
Automatic directory indexing is disabled by default. If no index file is available, the
server returns an error for any attempt to access a directory.
For more information about the DirectoryIndex command, see Region on
page A-49.
Disabling Logging
You can disable logging for specific requests. When you disable logging for a request,
no entry is generated for that request in the server log files. This feature is useful for
omitting unimportant log entries. For example, you could disable logging for requests
coming from your own company, or you could disable logging for requests
corresponding to a particular region.
To disable logging for specific requests, you use the NoLog command in a Region
directive as:
NoLog [pattern pattern ...]
where:
pattern
specifies one or more client host names or IP addresses. If a Web client host name
or IP address matches one of the specified patterns, logging is disabled for all
requests corresponding to the relevant region. If no patterns are specified, logging
is disabled for all requests corresponding to the relevant region.