Entry
How do I enable directory browsing ?
Nov 15th, 2001 19:58
Anthony Boyd, Santosh Patel,
Directory browsing is what happens when you don't have an index.html
file in a directory. The server returns a list of all files in the
directory. Usually this is on by default, but not if you add Virtual
Servers or otherwise mess with the httpd.conf file. To turn it on,
open httpd.conf and go to the tag for your directory:
<Directory "/usr/local/apache/htdocs">
Options FollowSymLinks MultiViews
</Directory>
And ADD the word "Indexes" to the Options, like this:
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
</Directory>
Then save the file and restart Apache. Done.