Problem getting .htaccess working
Im trying to password protect a folder on my webserver. I have everything working i.e. it asks for the username and password when I try to access the folder but when I enter them, it says the password or username is wrong (it is not, I have checked many, many times). I thought maybe apache doesn't have the rights to the .htpasswd file so i did a "chown root:apache .htpasswd" on it, but that didnt help.
This is my .htaccess files contents:
Yes, my .htpasswd file is located in /usr/local/apache2/htdocs/private. To create the user I made the file with the command htpasswd -c .htpasswd username, and it said user and password created.
AuthName "private area"
<Limit GET POST>
Do I need to set some permissions or what? Please help, this is driving me nuts.