Welcome! Log In Create A New Profile

Advanced

Problem with auth_basic and auth_basic_user_file

June 23, 2014 03:26PM
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?
Subject Author Posted

Problem with auth_basic and auth_basic_user_file

Varix June 23, 2014 03:26PM

Re: Problem with auth_basic and auth_basic_user_file

Maxim Dounin June 23, 2014 10:38PM

Re: Problem with auth_basic and auth_basic_user_file

Varix June 24, 2014 11:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 56
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready