Nginx upstream sent too big header

When I log in to a PrestaShop website, I get an error on a Plesk server.

On checking error login for the site in folder /var/www/vhosts/, I found the following error message

proxy_error_log:2020/11/25 19:41:41 [error] 1809#0: *39664 upstream sent too big header while reading response header from upstream, client:, server:, request: “POST /en/login?back=my-account HTTP/2.0”, upstream: “”, host: “”, referrer: “”

To fix, add the following to Nginx config.

If Nginx works as a reverse proxy to another application server.

If Nginx serve pages using FastCGI/fpm.

On Plesk Server

On Plesk, go to the domain name, then click “Apache & nginx Settings”. On next page add the following code and click OK.

Plesk Nginx

See Nginx

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *