I am trying to get password protected directories working with Apache 2 on my Windows Development Server.
I have a .htaccess file (actually it is called htaccess at the moment for windows but I have tried both) and a passwords file. My htaccess file contains the following:
AuthName "Administrator access only"
require user root
I put my passwords file in the same directory as htaccess to make sure it was not a path problem. I have also tried various paths.
My passwords file contains the following:
And I have this in my httpd.conf:
LoadModule auth_module modules/mod_auth.so
I have no idea how to get this working which is annoying as its very much needed.