Welcome! Log In Create A New Profile

Advanced

Re: 502 Bad Gateway

Igor A. Ippolitov
August 15, 2019 12:54AM
Ken,

proxy_buffer_size and proxy_buffers are very similar.
These configure buffers allocated for a response from an upstream.
Both are documented here:
http://nginx.org/en/docs/http/ngx_http_proxy_module.html . Please, have
a look.

The difference is that proxy_buffer_size buffer is always allocated to
read the response header
And then nginx allocates memory for the response body using
'proxy_buffers' rules.

So, where to put 'proxy_buffer_size': put it right next to your
'proxy_pass' statement. This should work.

Regards,
Igor

On 15.08.2019 1:59, Ken Wright wrote:
> On 8/14/19 3:37 AM, Igor A. Ippolitov wrote:
>> Ken,
>>
>> Try setting 'proxy_buffer_size' to a higher value. Say 128k.
> Umm, what file would I find that in?  I've seen so many similar
> statements lately I can't keep them straight.  Sorry for being so dumb!
>
> Ken
>

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

502 Bad Gateway

Ken Wright August 12, 2019 11:36PM

Re: 502 Bad Gateway

Maxim Dounin August 13, 2019 07:46AM

Re: 502 Bad Gateway

Radjin August 14, 2019 01:01AM

Re: 502 Bad Gateway

Ken Wright August 14, 2019 01:48AM

Re: 502 Bad Gateway

Igor A. Ippolitov August 14, 2019 03:38AM

Re: 502 Bad Gateway

Ken Wright August 14, 2019 07:00PM

Re: 502 Bad Gateway

Igor A. Ippolitov August 15, 2019 12:54AM

Re: 502 Bad Gateway

Radjin August 14, 2019 04:11AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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