nginx auth_basic errors: user not found and no user/password provided
- by Jhilke Dai
I have set auth basic in nginx and blocked other ips like:
location / {
auth_basic "Restricted Area";
auth_basic_user_file .htpasswd;
allow 127.0.0.1;
deny all;
}
I can login using the username/password provided in .htpasswd but the error log in nginx shows errors like:
user "memcache" was not found in "/etc/nginx/.htpasswd"
no user/password was provided for basic authentication
Any suggestion why this occurs and how to get rid of it ?