Welcome! Log In Create A New Profile

Advanced

nginx returns 503 when it gets 403 from haproxy

CJ Ess
April 14, 2016 10:46PM
In my environment I have Nginx terminating connections, then sending them
to an HAProxy upstream. We've noticed that whenever HAProxy emts a 403
error (Forbidden, in response to our ACL rules), NGINX reports a 503 result
(service unavailable) and I believe is logging an "upstream prematurely
closed connection while reading response header from upstream" error
message in the nginx error log.

What I'd really like to do is pass the 403 code back to the user - what do
I need to do?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx returns 503 when it gets 403 from haproxy

CJ Ess April 14, 2016 10:46PM

Re: nginx returns 503 when it gets 403 from haproxy

Francis Daly April 15, 2016 03:34AM

Re: nginx returns 503 when it gets 403 from haproxy

Валентин Бартенев April 15, 2016 04:50PM

Re: nginx returns 503 when it gets 403 from haproxy

CJ Ess April 16, 2016 03:26PM

Re: nginx returns 503 when it gets 403 from haproxy

CJ Ess April 18, 2016 01:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 174
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