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/domain.com/logs/proxy_error_log, 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: 59.92.71.53, server: tulivesi.com, request: “POST /en/login?back=my-account HTTP/2.0”, upstream: “https://shop.serverok.in:7081/en/login?back=my-account”, host: “shop.serverok.in”, referrer: “https://shop.serverok.in/en/login?back=my-account”

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

Leave a Reply

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