I have a Ubuntu running an Apache 2.2 webserver, and I'd like to password protect a directory that I'm serving, with all of its files and subdirectories, and be given a security prompt
Here's what I have in the virtual server web directory I'd like to protect:
AuthName "Dialog prompt" AuthType Basic AuthUserFile /home/dev/.htpasswd Require valid-user
I also have a valid .htpasswd file in
/home/dev. After researching a bit on serverfault, I learned that it may be necessary to give file and directory ownership to the owner of the apache process, which I did.
But at every time I try this, the website in this directory has loaded.