502 Bad Gateway

Igor A. Ippolitov iippolitov at nginx.com
Thu Aug 15 04:52:13 UTC 2019


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.


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

More information about the nginx mailing list