Nginx
-
Chasing a 502 on /wp-json: when headers get too big

Recently I came across a 502 Bad Gateway on a WordPress REST endpoint, which I had to fix: Stack: Nginx + PHP-FPM behind CloudFront. At first it looked like the usual “proxy header size too big” issue. Nginx error logs also pointed to it: upstream sent too big header while reading response header from upstream… Continue reading