Tagged articles

502 Bad Gateway

4 articles · Page 1 of 1
Raymond Ops
Raymond Ops
Aug 14, 2026 · Operations

How to Diagnose and Fix 502, 504, and Connection Reset Errors in Nginx

This guide explains the distinct causes of 502 Bad Gateway, 504 Gateway Timeout, and Connection Reset errors in Nginx reverse‑proxy setups and provides a step‑by‑step, four‑segment troubleshooting workflow with concrete log examples, shell commands, and configuration recommendations.

502 Bad Gateway504 Gateway TimeoutConfiguration
0 likes · 24 min read
How to Diagnose and Fix 502, 504, and Connection Reset Errors in Nginx
Practical DevOps Architecture
Practical DevOps Architecture
Mar 27, 2025 · Backend Development

Resolving 502 Bad Gateway Errors in Nginx Reverse Proxy Caused by Missing SNI Configuration

This article explains why Nginx reverse‑proxying to an HTTPS upstream can return a 502 Bad Gateway error when SNI is not sent, shows the relevant SSL handshake log, and provides a complete configuration example—including enabling proxy_ssl_server_name—to fix the issue and avoid reload‑related socket problems.

502 Bad GatewayConfigurationSNI
0 likes · 4 min read
Resolving 502 Bad Gateway Errors in Nginx Reverse Proxy Caused by Missing SNI Configuration
LouZai
LouZai
Oct 19, 2023 · Backend Development

How to Diagnose and Fix 502 Bad Gateway Errors

This article explains what a 502 Bad Gateway error means, why it is usually generated by a reverse‑proxy like nginx, and provides step‑by‑step methods to identify common causes such as backend timeouts, process crashes, and misconfigured upstream servers.

502 Bad GatewayDebuggingHTTP status codes
0 likes · 15 min read
How to Diagnose and Fix 502 Bad Gateway Errors