Online Shopping : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

227 of 263 people (86%) answered Yes
Recently 8 of 10 people (80%) answered Yes


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
And ADD the word "Indexes" to the Options, like this:
<Directory "/usr/local/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
Then save the file and restart Apache.  Done.