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 <li...@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-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

Reply via email to