1

I had a similar problem with 502 Bad Gateways, but in my case it was for AJAX requests. The following nginx directives worked for me; proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k;


1

Try next settings for nginx: client_max_body_size 10m; client_body_buffer_size 128k; fastcgi_connect_timeout 90; fastcgi_send_timeout 180; fastcgi_read_timeout 180; fastcgi_buffer_size 1024K; fastcgi_buffers 8 512k; fastcgi_busy_buffers_size 1024k; fastcgi_temp_file_write_size 1024k; It can be also error with php - not enough child processes. Check logs ...


1

You may have already resolved this, but in case you haven't or for anyone else running into this issue, I resolved it by adding the following to my nginx.conf file within the http {} tags located at /etc/nginx/nginx.conf on your server: proxy_buffer_size 128k; proxy_buffers 4 256k; proxy_busy_buffers_size 256k; Then restart your nginx service via SSH ...


Only top voted, non community-wiki answers of a minimum length are eligible