Web ServersNginx 502 Bad Gateway: 6 Causes and Exact Fixes
Nginx 502 means the backend failed, not Nginx. Here are the 6 real causes on Ubuntu (PHP-FPM down, crashed app, wrong proxy_pass, timeouts, big headers, socket permissions) with the exact commands to diagnose and fix each one.
Read article






