How to Fix WordPress 502 Bad Gateway and 504 Gateway Timeout (Nginx, PHP-FPM, Cloudflare)
The first time I saw a 502 Bad Gateway, it felt like my site had a locked front door, and Nginx was the bouncer shrugging at everyone in line. No fancy message, no hint, just “Bad Gateway.” A 504 Gateway Timeout is the same vibe, except the bouncer let your request into the building and…