Question:How do I turn automatic directory listings on or off?


If a client requests a URL that designates a directory and the directory does not contain a filename that matches the
DirectoryIndex directive, then mod_autoindex can be configured to present a listing of the directory contents.
To turn on automatic directory indexing, find the Options directive that applies to the directory and add the Indexes
keyword. For example:
Options +Indexes
To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off
directory listing for a particular subdirectory, you can use Options -Indexes. For example:
Options -Indexes

asked Sep 13, 2013 in APACHE by rajesh
edited Sep 12, 2013
0 votes

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.