Allow or disable directory browsing with Apache

For example, to allow directory browsing for the directory “C:\Users/Jack/Documents/Sites/test”, put the following at the end of the httpd.conf file. One of the parent directories of the directory “test” has to be the DocumentRoot directory or an alias is pointing to it, or the directory “test” itself is a DocumentRoot directory.

<Directory "C:\Users/Jack/Documents/Sites/test">
        Options +Indexes
</Directory>

To disable the directory browsing.

<Directory "C:\Users/Jack/Documents/Sites/test">
        Options -Indexes
</Directory>

REMEMBER to restart apache server whenever you made changes to the httpd.conf file, this file is located in the directory “conf” under the apache home directory.

Search within Codexpedia

Custom Search

Search the entire web

Custom Search