httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Meadors <clubn...@hereintown.net>
Subject Re: [users@httpd] confused with directory permissions
Date Sun, 01 Dec 2002 20:04:51 GMT
Jordan Thompson wrote:
> Hi All,
> I am a little (a lot) confused on how to set up my .access files and how to
> use them.
> What I would like to be able to do is let anyone go to a directory *unless*
> I have a .access file in it.  in which case, I'd like to apply the
> restrictions in that file.
> 
> Here is the relative (I think) section of my commonhttpd.conf file:
> 
> <Directory />
>   Options -Indexes FollowSymLinks
>   AllowOverride None
>   Options +Indexes
> </Directory>

No, change that back to:

<Directory />
     Options FollowSymLinks
     AllowOverride None
</Directory>

What you are looking for is the Directory setting for your DocumentRoot, 
usually <Directory "/usr/local/apache2/htdocs">.

That you want to look something like:

<Directory "/usr/local/apache2/htdocs">
     Options +Indexes
     AllowOverride Options
</Directory>

Then you can put "Options -Indexes", in your .htaccess file.

-- 
Chris


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message