In Apache, how do I set up password protection?
- by rphello101
I'm attempting to set up a server using Apache. In the conf file, I inserted the code:
<Directory />
Options FollowSymLinks
AllowOverride AuthConfig
AuthType Basic
AuthName "Restricted Files"
AuthBasicProvider file
AuthUserFile C:\...\serverpass.txt
Require user Admin
</Directory>
In order to try and get Apache to require a password. I created the username and password with htpasswd -c. When I got to localhost though, it doesn't prompt me for a username and password?