nginx auth_basic errors: user not found and no user/password provided
        Posted  
        
            by 
                Jhilke Dai
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Jhilke Dai
        
        
        
        Published on 2013-03-26T20:28:34Z
        Indexed on 
            2014/06/07
            15:27 UTC
        
        
        Read the original article
        Hit count: 371
        
nginx
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 ?
© Server Fault or respective owner