htaccess doesn't work - always wrong password
问题 I am trying to password protect a directory, and have two files in the directory which should password protected it: .htaccess .htpasswd HTACCESS: ###Contents of .htaccess: AuthUserFile /var/www/html/path/to/my/directory/.htpasswd AuthName "Protected Files" AuthType Basic Require user admin HTPASSWD: ###Contents of .htpasswd admin:oxRHPuqwKiANY The password is also admin, but no matter what password I try, it is always wrong. It immediately asks for the password again! What is wrong with this