httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nasir Zia <nasir...@gmail.com>
Subject Re: [users@httpd] password protected files
Date Thu, 21 Jan 2010 14:30:08 GMT
My directory authentication works fine. But i want to restrict only one file
behind authentication which is not working for me

On Thu, Jan 21, 2010 at 6:19 PM, Nilesh Govindarajan <lists@itech7.com>wrote:

> On 01/21/2010 05:44 PM, Nasir Zia wrote:
>
>> AOA,
>>
>> how can i password protect a single file with htaccess. i am using below
>> technique but it not works for me
>>
>> AuthName "test"
>> AuthType Basic
>> AuthUserFile /path to file/.htpasswd
>> <Files "test.php">
>>   require valid-user
>> </Files>
>>
>> Nasir
>>
>
> I think your server is not permitting AuthConfig in .htaccess.
>
> Try with this -
>
> <Directory <docroot> >
>
> AllowOverride +AuthConfig
>
> </Directory>
>
> Then I think it should work.
>
>
> --
> Nilesh Govindarajan
> Site & Server Adminstrator
> www.itech7.com
>
>
> ---------------------------------------------------------------------
> 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