Welcome! Log In Create A New Profile

Advanced

Bug in nginx?

April 17, 2011 01:28PM
Hi,

I'm still using Nginx 0.7.67 and I think I have found a minor bug.

In my config files, for one domain I have entries like this to protect
two directories.

location /secret {
index index.html
auth_basic "Please login";
auth_basic_user_file /path/to/passwordfile
}

location /private {
auth_basic "Hello, Please login";
authObasic_user_file /path/to/passwordfile;
if ()
etc

Note the second line above has no trailing semi-colon.

The result is that /secret is not protected (although /private is).

The bug is that when nginx is restarted, it announces that the config file
is valid, when it isn't, (so the problem was not detected for many months).

Regards

Ian



_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Bug in nginx?

hobson42 April 17, 2011 01:28PM

Re: Bug in nginx?

Maxim Dounin April 17, 2011 02:14PM

Re: Bug in nginx?

hobson42 April 17, 2011 03:38PM

Re: Bug in nginx?

vt April 18, 2011 02:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready