I am trying to password protect a web directory with apache. I have the site set up like this:
D:/
webapp/
lib/
.htpasswd
document_root/
admin/
index.php
.htaccess
The .htaccess
has:
AuthName "Authorization Required"
AuthType Basic
AuthUserFile D:\webapp\lib\.htpasswd
require valid-user
And the .htpasswd
has:
user:passworddigest
When I try to access localhost/index.php
in the browser I get a 500 error. The apache error log has this:
["date"] [crit] [client "ip"] configuration error: couldn't check user. Check your authn provider!: /admin/
I have googled but I can't figure out what this error means in the context of my server. Anyone know what's up? Also, it would solve my problem if someone had a simple method of using apache for authenticating a web directory on a windows server.