httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <>
Subject Re: Restricting indexes
Date Fri, 17 May 2002 01:40:37 GMT
Hi, thanks. Here are the settings for my virtual host and it seems to be OK:
(But it doesn't let me to hide the indexes)

Any more ideas?


DocumentRoot /var/www/teddy/html
ScriptAlias /cgi-bin/ "/var/www/teddy/cgi-bin/"
ErrorLog logs/teddy.error_log
CustomLog logs/teddy.access_log common

<Directory /var/www/teddy/>
    Options FollowSymLinks
    AllowOverride All


----- Original Message -----
From: "Owen Boyle" <>
To: <>
Sent: Thursday, May 16, 2002 10:57 AM
Subject: Re: Restricting indexes

Octavian Rasnita wrote:
> Hi all,
> I want to restrict the visitors to view the index of files and folders
> a folder on my web site.
> In my .htaccess file I put:
> options none
> options FollowSimLinks Includes Multiviews
> options -Indexes
> But I can see the index of files from that folder with no problem.
> Do you have any idea what's going on?

First off, to help others read your code, why not put a capital "O" on
"Options" - like it does in the documentation.

There are two possible causes of your problem:

(1) Your options settings on multiple lines are a bit confusing. The
rules for merging multiple options are complicated - to avoid ambiguity,
I would put them all on one line, i.e.
Options FollowSymLinks Includes Multiviews

This way, the appearance of explicit options means that exactly and only
those options will be set. This switches off all the others so you don't
even need "-Indexes".

(BTW, you spelt "FollowSymLinks" wrong in your post - hope it's not like
that in the config :-)

(2) Your .htaccess file is not being read. I know you state "I have
rights to use .htaccess files" but you have to be sure. You need a line

AllowOverride Options

in a context that describes this directory.


Owen Boyle.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message