iTP Secure WebServer System Administrator's Guide (iTPWebSvr 5.1+)
Configuring the iTP Secure WebServer
iTP Secure WebServer System Administrator’s Guide—522659-001
7-33
Enabling Automatic Directory Indexing
For example, you can use the following Region directive to redirect requests for all
objects under directory /info/stocks/* to the new location
http://quote.widgets.com/stocks as follows:
Region /info/stocks/* {
Redirect -replace /info/stocks
http://quote.widgets.com/stocks
}
In this example, any request for the object
/info/stocks/quote/dec.html
is redirected to the URL
http://quote.widgets.com/stocks/quote/dec.html
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, the following directive enables indexing for all directories on the
server:
Region * {
DirectoryIndex
}
The following example shows an index generated under automatic directory indexing:
Name Last Modified Size
-------------------------------------------------------
../ 26-Mar-95 10:14
CVS/ 17-Mar-95 13:44
a-very-long-file-name-test 17-Mar-95 12: OK
size-100000.html 17-Mar-95 12:15 97K
subdir/ 17-Mar-95 13:44
test.html 17-Mar-95 12:15 OK
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-39.










