Search code examples
.htaccessbasic-authentication.htpasswd

htaccess authentication not using htpasswd


I have an .htaccess file that looks like this:

AuthUserFile /etc/.htpasswd
AuthType Basic
AuthName "Restricted Client Area"
Require user admin

In the /etc/.htpasswd file I have a single entry for a user called admin that was created via the htpasswd binary. When I go to my site and get queried for authentication, it's letting me login with the Mac user 'admin' that exists on the webserver, as opposed to the admin user from the htpasswd file.

How do I ensure it uses the htpasswd file, and only the htpasswd file?


Solution

  • Apple's server adds their own authentication module that is causing this behavior.