Web Hosting Talk







View Full Version : Disable Apache Directory Listing


daintree
11-02-2001, 01:43 AM
I'm need to stop Apache displaying a directory listing when an index.html does not exist. I tried putting the following in my httpd.conf file and restarted the server but it didn't work -

<Directory /home/sites>
Options -Indexes
</Directory>

If I put Options -Indexes in a .htaccess file, it works but I would prefer to do this globally across all domains.

Oh yeah, this is a RaQ3.

Any help would be appreciated.


TIA
Dave

skylab
11-02-2001, 04:23 AM
some of these might possibly help. i hope so, if not, sorry.

http://www.webhostingtalk.com/showthread.php?s=&threadid=15623&highlight=htaccess+file

http://www.webhostingtalk.com/showthread.php?&postid=89301#post89301