httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jordan Thompson" <Jor...@ThompCo.com>
Subject Re: [users@httpd] confused with directory permissions
Date Sun, 01 Dec 2002 20:02:11 GMT

----- Original Message -----
From: "Chris Meadors" <clubneon@hereintown.net>
To: <users@httpd.apache.org>
Sent: Sunday, December 01, 2002 3:04 PM
Subject: Re: [users@httpd] confused with directory permissions


> 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.
> >

<SNIP>
>
> 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">.

I don't have anything like this.  I assume it would be in the
commonhttpd.conf file?

>
> 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.

Would this work even if I want to allow access to indexes without the
.htaccess file?  Remember I only want o mess with the .access file in those
(rare) cases that I want to restrict access.

thanks
Jordan


---------------------------------------------------------------------
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