Welcome! Log In Create A New Profile

Advanced

Re: broken header without HAProxy

Maxim Dounin
June 04, 2019 06:30AM
Hello!

On Tue, Jun 04, 2019 at 02:25:39AM -0400, arashad wrote:

> I'm trying to remove HAProxy from my setup but i keep getting "broken header
> while reading proxy protocol" and the website won't open at all.
> If i remove the "send-proxy" from HAProxy the website won't open also.

Likely the reason is that you have "listen ... proxy_protocol;" in
your config, and removing HAProxy, as well as removing
"send-proxy" option in HAProxy, makes connections invalid as they
no longer have required PROXY protocol header.

To accept connections without PROXY protocol header you have to
remove the "proxy_protocol" flag from the listen directives.
Alternatively, you can configure different listening socket
without the "proxy_protocol" flag, and use this socket for
connections without PROXY protocol header.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

broken header without HAProxy

arashad June 04, 2019 02:25AM

Re: broken header without HAProxy

Aleksandar Lazic June 04, 2019 04:22AM

Re: broken header without HAProxy

arashad June 04, 2019 04:32AM

Re: broken header without HAProxy

Aleksandar Lazic June 04, 2019 05:24AM

Re: broken header without HAProxy

Maxim Dounin June 04, 2019 06:30AM

Re: broken header without HAProxy

arashad June 09, 2019 01:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready