atom feed4 messages in ru.sysoev.nginxBug in nginx?
FromSent OnAttachments
Ian HobsonApr 17, 2011 10:26 am 
Vitaly TskhovrebovApr 17, 2011 10:43 am 
Maxim DouninApr 17, 2011 11:12 am 
Ian HobsonApr 17, 2011 12:35 pm 
Subject:Bug in nginx?
From:Ian Hobson (ia@ianhobson.co.uk)
Date:Apr 17, 2011 10:26:20 am
List:ru.sysoev.nginx

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