Re: password protected files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux