On Sat, 2006-11-04 at 10:58 -0600, wrote:
I had httpd running in my FC5. I guess directory listing is enabled by default (if no index.html, then I can see all the files inside). I have directory /var/www/html/links where I am currently working on. I have tried the ".htaccess" file methods mentioned in web to prevent directory listing but I can still see all the files when I go to this URL (simulating no index file).
Erich Carlson
Option -Indexes turns off the index'ing if there is no file present as defined in DirectoryIndex above.
<Directory "/var/www/html">
Options -Indexes
AllowOverride None Order allow,deny Allow from all
</Directory>
And "AllowOverride None" stops .htaccess files from overriding settings in the configuration file. Read about the AllowOverride directive for its options.