Password protected folder in Apache2
I'm trying to setup a basic password protected folder (for file sharing) on our apache2 web server
I've created a password file with htpasswd and then I've edited the \etc\apache2\sites-enabled\000-default file and added the Directory entry:
AuthName "Please login"
Require user username
I've created the \var\www\foldertoshare and given the apache user www-data access to it.
This sort of works - when I enter the url of the folder I am prompted for the credentials. However when I enter them I always get:
Where am I going wrong with this? I'm sure I did this before on a previous server!
You don't have permission to access /foldertoshare/ on this server.