I think your server is not permitting AuthConfig in .htaccess.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
Try with this -
<Directory <docroot> >
AllowOverride +AuthConfig
</Directory>
Then I think it should work.www.itech7.com
--
Nilesh Govindarajan
Site & Server Adminstrator
---------------------------------------------------------------------
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