- Use index files if they exist.
- Default: Give directory listings where there is no index file.
- Under
fubar
: Bounce the request where there is no index file.
- NB: URL regular expression, not directory tree.
DirectoryIndex index.html
<Location /fubar/*>
DirectoryIndex index.html /bounce.html
</Location>
http://www.dept.cam.ac.uk/snafu/
-
File
/home/httpd/html/snafu/index.html
or listing of /home/httpd/html/snafu
.
http://www.dept.cam.ac.uk/fubar/
-
File
/home/httpd/html/fubar/index.html
or file /home/httpd/html/bounce.html
.