HTTP 502

502 Bad Gateway

The server, while acting as a gateway or proxy, received an invalid response from an inbound server it accessed.

Specification & Standard

RFC 7231 Section 6.6.3

Developer Debugging & Troubleshooting Checklist
  • Verify server access logs and error logs in cPanel File Manager (`/logs`).
  • Check `.htaccess` syntax rules for unintentional infinite redirect loops or missing files.
  • Validate upstream proxy or Cloudflare SSL configuration mode (Flexible vs Full Strict).