[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cobalt-users] .htaccess - directory browsing options
- Subject: RE: [cobalt-users] .htaccess - directory browsing options
- From: "Ligard, Vidar" <vligard@xxxxxxxxx>
- Date: Fri Sep 26 08:07:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> -----Original Message-----
> From: Paul Shuttleworth [mailto:paul@xxxxxxxxxxxxxx]
> Sent: Friday, September 26, 2003 9:52 AM
> To: Cobalt Users Listserver
> Subject: [cobalt-users] .htaccess - directory browsing options
>
>
> Hi All
>
> I am trying to stop directory browsing for a single client on
> a RAQ4r. I have created a .htaccess file with the following contents
>
> #Access file
> Options -Indexes
>
> Whenever I try and put this in the /web directory I am
> getting an internal server error. The file is chmoded to 644,
> but changing it to 755 still does not help (not that it needs to be).
>
> Am I missing something REALLY stupid here ?
> Does something else have to be added to the above ?
>
> I have searched through the archives and there are several
> posts saying this should work on a RAQ. So why does it not ?
>
> Any ideas ?
You don't need an .htaccess file to stop directory browsing. Chmod the directory to 771 or 751. As long as httpd or apache does not have read permission on the directory, it cannot read its contents. You will need execute permission, else you cannot read any file in the directory even if you do know the specific path, hence the 1 at last for execute only permission.
Vidar
>
> Cheers
> Paul.
>
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt> -users
>