- 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: Actual directory name, not URL component.
DirectoryIndex index.html
<Directory /home/httpd/html/fubar>
DirectoryIndex index.html /bounceMessage.html
</Directory>
http://www.dept.cam.ac.uk/snafu/
-
File
/home/httpd/html/snafu/index.html
if it exists.
Listing of /home/httpd/html/snafu
if it doesn't.
http://www.dept.cam.ac.uk/fubar/
-
File
/home/httpd/html/fubar/index.html
if it exists.
File /home/httpd/html/bounceMessage.html
if it doesn't.