httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LDB <thesou...@ldb-jab.org>
Subject Re: [users@httpd] Protecting a directory while allowing access to certain files
Date Fri, 28 Mar 2008 16:18:56 GMT
Joshua Slive wrote:
> On Fri, Mar 28, 2008 at 12:07 PM, Joshua Slive <joshua@slive.ca> wrote:
>> On Fri, Mar 28, 2008 at 11:38 AM, LDB <thesource@ldb-jab.org> wrote:
>>  > I am trying to password protect a directory but still allow access
>>  >  to "all" to a single file within that directory.
>>  >
>>  >  Is that possible?
>>
>>  Yes, with a <Files> section inside the <Directory> section that grants
>>  access. You didn't specify what kind of protection you are talking
>>  about, so it is not possible to provide a specific example.
> 
> Oh, wait, you said "password" protect:
> 
> <Directory /foo/bar>
> Auth.....
> require valid-user
> <Files unprotected.html>
> Satisfy Any
> Allow from all
> </Files>
> </Directory>
> 
> Joshua.
> 
> ---------------------------------------------------------------------
> 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
> 
> 


Perfect .. Thank you ...

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