Welcome to WebmasterWorld Guest from 184.108.40.206
Thanks for the warm welcome and thanks for the link to the mod_autoindex documentation.
I'm relatively new to Apache. I have the read the documentation for mod_autoindex, but still seem to be unable to turn it off.
I checked my httpd.conf and can't seem to find where the autoindexing is turned on. Is it on by default? I found where it was disabled for the root directory and a placeholder page was used instead. So I see how to configure it on a directory-by-directory basis. I just don't see how to do it on a global basis.
I tried Options -Indexes with no container and that did not seem to work.
Any help would be greatly appreciated.
If a URL which maps to a directory is requested, and there is no DirectoryIndex (e.g., index.html) in that directory, then mod_autoindex will return a formatted listing of the directory.
Search your httpd.conf for your default <Directory> container. The first one you will find will be the very restrictive set of features and usually right after that you will find a <Directory> container for your DocumentRoot. In there you will more than likely see the entry...
Options Indexes FollowSymLinks...and it is there that you can remove the Indexes option.
You're right, this isn't a bad setting to change anyway. If you ever forgot to drop a DirectoryIndex file into any directory that you have created, at least folks won't get a directory listing off your server for every file in that directory.
Thank you very much for your reply. It was exactly what I was looking for. Unfortunately, it didn't work.
I did exactly what you said by adding the "-Indexes" under the directory container. I also removed all other instances of "Indexes" from the httpd.conf file.
Is there someplace besides the httpd.conf that this autoindex is configured?
I didn't catch it because it did not contain the word "Indexes". I changed it to:
Options -Indexes All
and worked like a charm. Thanks to all for your help.
I also learned that "service httpd restart" is a much easier way to do "/etc/rc.d/init.d/httpd restart" in the process!