Problem with auth_basic and auth_basic_user_file

Varix nginx-forum at nginx.us
Mon Jun 23 19:26:14 UTC 2014


Hallo,

I want a login for this location.

    location /TEST/ {
       alias /www/c2c/;
       }

With 
  
  location /TEST/ {
       alias /www/c2c/;
       auth_basic "Test Auth";
      }

no username/password box in the browser. I see the index.html site from the
c2c folder


With

    location /TEST/ {
       alias /www/c2c/;
       auth_basic "Test Auth";
       auth_basic_user_file /nginx/conf/htpasswd;
       }

and an "404 Not Found" error shows the browser.

I use  nginx 1.7.2

Where is the problem?

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251118,251118#msg-251118



More information about the nginx mailing list