On Sun, 2006-11-05 at 00:32 +0800, Deepak Shrestha wrote: > Hi, > > 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). > > My .htaccess file contains > ================================= > Options -Indexes (suggestion from one site) > IndexIgnore * (suggestion from another site) > ================================= > > Can somebody guide me how to fix this? I guess it will just be small tweak. > > Thanks > <IfModule dir_module> DirectoryIndex index.html index.shtml index.pl index.cgi index.php </IfModule> 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> -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list