[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RAQ3 how do you disallow index viewing?




> I'd like to disallow viewing of indexing so that when someone enters
> http://www.website.com/dir1/  they do not see the index of the files.

You don't need to modisy the server config to do this, just create a file
named .htaccess in the dir at which, and below which you don't want
directory's listed, in it put

Options -Indexes

If you want to disallow it server-wide (which I personally think is a good idea), put:
Options -Indexes
in srm.conf

Then you can turn it ON in certain directories if needed using an .htaccess and:
Option Indexes
(Notice no hyphen before Indexes)

Brian