I just edited the .htaccess
file to include:
AuthType Basic
AuthName "My Protected Area"
AuthUserFile /home/path/to/public_html/
Require valid-user
I then created a .htpasswd
file via the htpasswd
command. I have enabled the module: LoadModule authn_file_module modules/mod_authn_file.so
in the Apache configuration.
Now, when I load the page I get a 500 error and Apache log says:
configuration error: couldn't check user. No user file?: /