Forum Moderators: phranque
AuthUserFile /www/folder/www.mywebsite.com/admin/.htpasswd
AuthName "Administrator section"
AuthType Basic
AuthUserFile .htpasswd
Require valid-user
the .htpasswd file is as following:
username:encryptedpassword
I uploaded the files with an extension .txt using ASCII then I changed the renamed them on inside the server's directory. Both files are in the same directory.
When I use the browser to type my username and password to get access to the directory this is what i got:
401 Authorization Required
This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.
Help will be greatly apreciated!