401 error on first prompt

Bug #1859281 reported by jeanmarc
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nginx
Invalid
Undecided
Unassigned

Bug Description

Hello,

I log 401 errors in a file to use it with fail2ban.
I noticed that on the first login/passwd prompt it return a 401 error, even if i have enter a correct login/password and didn't push cancel.

I don't think this behavior is correct. Is it a bug or did i miss something ? I run nginx/1.16.1

Cheers

Revision history for this message
Thomas Ward (teward) wrote :

If you are getting 401 errors on first prompt then the issue is you are not putting your password in correctly.

Are you usijg the PPAs or the packages in Ubuntu? If you are using neither and are using the nginx.org packages then you need to file issues elsewhere because this bug report site isnt monitored by nginx upstream.

Revision history for this message
jeanmarc (jeanmarc77) wrote :

Hi,

I put a valid password but i get 401 on the first prompt though.
My errors are redirected :
...
error_page 401 /error.html;
..
# log unauthorized
location = /error.html {
internal;
access_log /var/log/nginx/401error.log;
}
...

I use Arch Linux nginx build.
thanks

Revision history for this message
jeanmarc (jeanmarc77) wrote :

It's not redirected to error.html but i got a 401 logged in 401error.log;

xx.xx.xx.xx - - [12/Jan/2020:17:36:41 +0100] "GET /metern/ HTTP/2.0" 401 6 "https://xxxx/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36"

Revision history for this message
Thomas Ward (teward) wrote :

We dont support Arch on this tracker. You need to file an issue in Arch’s bug tracker as this is a tracker for Ubuntu and the PPA.

Changed in nginx:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.