httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Pierce" <>
Subject Re: [users@httpd] Apache Authetication - Folder scoping
Date Wed, 25 Feb 2004 04:35:08 GMT


I believe that I had read on the list that using .htaccess takes up a lot of
overhead.  That it would be easier to use a directory level security
with a log in.  Am I way off base on this??  

*********** REPLY SEPARATOR  ***********

On 2/24/2004 at 7:57 PM Rich Bowen wrote:

>On Tue, 24 Feb 2004, Ajay Chitturi wrote:
>> I am using Apache http server for my web pages security.
>> Here is my directory structure
>> A-Top Level
>> B, C, D, E are some subdirectories inside of A.
>> I am having ".htaccess " in A, so obviously B,C,D,E are covered under
>> http server security.
>> But is there is way to provide security only for C, D, E but not B using
>> the same ".htaccess", or is there any other way out instead of putting
>> "htaccess" in all the folders I need to be secured.
>Well, it could be done in your httpd.conf file, using a DirectoryMatch
><DirectoryMatch ^/www/A/[CDE]>
>... directives here ...
>Or, rather, assuming that the directory names are more than just a
>single letter ...
><DirectoryMatch ^/www/AAA/(CCC|DDD|EEE)>
>where /www is your documentroot.
>You also may be looking for the "satisfy" directive, but doing that all
>with a single .htaccess file would be difficult.
>Pilgrim, how you journey on the road you chose
>To find out where the winds die and where the stories go
> --Pilgrim (Enya - A Day Without Rain)
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:> for more info.
>To unsubscribe, e-mail:
>   "   from the digest:
>For additional commands, e-mail:

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message