eddieace
126
3
Forge

Wordpress on forge upstream sent too big header while reading response header from upstream

Posted 1 year ago by eddieace

Hi I have a wordpress site running on forge. I get this error.

502 Bad Gateway

From log:

017/03/07 09:40:30 [error] 12586#12586: *13909 upstream sent too big header while reading response header from upstream, client: 46.59.124.52, server: example.com, request: "GET /wp-admin/post.php?post=123&action=edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.1-fpm.sock:", host: "example.com", referrer: "http://ecample.com/wp-admin/edit.php?post_type=page&orderby=title&order=asc"

Online I have found a few solutions.

The first one is this but the problem is that I don't know where to add it. I have tried both in etc/nginx/nginx.conf and in the location block in sites-available.

fastcgi_buffers 16 16k; 
fastcgi_buffer_size 32k;

Any clues on how to fix this?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.