Tagged articles
2 articles
Page 1 of 1
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