HOWTO: Fix upstream sent too big header on NGINX
Posted: Wed May 20, 2020 2:31 pm
Finally after searching a lot I found how to fix that error you get on some wordpress sites while uploading new plugins, backups, etc.
Everywhere says you need to increase proxy_buffers on nginx. Maybe it helps but it certainly doesn't fix the issue.
If you have NGINX + PHP-FPM like me you need to have this on your /etc/nginx/fastcgi_params
This is a directive that goes under location / so you can't just put it on nginx.conf under http. With this you make sure it's enabled on all sites.
Everywhere says you need to increase proxy_buffers on nginx. Maybe it helps but it certainly doesn't fix the issue.
If you have NGINX + PHP-FPM like me you need to have this on your /etc/nginx/fastcgi_params
This is a directive that goes under location / so you can't just put it on nginx.conf under http. With this you make sure it's enabled on all sites.
Code: Select all
fastcgi_buffers 16 16k;
fastcgi_buffer_size 256k;