400 Bad Request – request header or cookie too large

It’s just what the error says – Request Header Or Cookie Too Large. One of your headers is really big, and nginx is rejecting it. You’re on the right track with large_client_header_buffers. If you check the docs, you’ll find it’s only valid in http or server contexts. Bump it up to a server block and it will work. By the way, the … Read more