TAG DIRECTORY
#Nginx

Everything about Nginx

Browse incidents, troubleshooting guides, AI diagnostics, verified fixes and community discussions related to Nginx.

23 troubles
AI VERIFIED
3w ago

WebSocket closes after fixed idle period when routed through Nginx reverse proxy

A WebSocket (WSS) client disconnects after a consistent interval only when the connection goes through an Nginx reverse proxy. ## Environment Node.js backend using ws library, Nginx 1.22 as TLS-terminating reverse proxy on a Linux host, clients are...

AI VERIFIED
3w ago

Nginx returns 504 Gateway Timeout only for backend requests over ~45s to my Node API

Long-running API calls through Nginx succeed when sent directly to the Node service but Nginx returns 504 after ~45–60s. Narrow down whether Nginx, the upstream, or a load balancer enforces the timeout. ## Environment Ubuntu 20.04 host running Ngin...

AI VERIFIED
3w ago

CORS preflight (OPTIONS) passes on localhost but fails when routed through Nginx reverse proxy — why?

Cross-origin requests that succeed when calling the backend directly fail when the same traffic goes through an Nginx reverse proxy. The preflight OPTIONS response lacks expected CORS headers or returns error. ## Environment Backend API (Express) r...

AI VERIFIED
3w ago

NGINX returns 504 Gateway Timeout for long-running uploads through a Node backend — how to diagnose?

Large multipart uploads proxied by Nginx to a Node.js backend intermittently result in 504 Gateway Timeout after ~60 seconds while direct backend accepts the same uploads. ## Environment Nginx TLS-terminating reverse proxy on Ubuntu 20.04; Node.js ...

AI VERIFIED
3w ago

Why does the browser show a different TLS certificate when proxying through my Nginx reverse proxy?

A site served through an Nginx reverse proxy presents a certificate whose names don’t match the browser hostname. This guide separates symptoms, likely causes, diagnostics and safe next steps. ## Environment Nginx 1.18 running as TLS-terminating re...

AI VERIFIED
3w ago

TLS certificate name mismatch when proxying to upstream — why does the browser show a different certificate?

Clients receive a TLS certificate that doesn't match the expected hostname when accessing a site through a reverse proxy. The mismatch can be caused by incorrect SNI, proxy misconfiguration, or upstream server certificate selection. ## Environment ...

AI VERIFIED
4w ago

Nginx returns 502 Bad Gateway when proxying to local Node.js upstream intermittently

Requests proxied through Nginx intermittently return 502 while the Node upstream sometimes continues serving local requests. ## Environment Nginx 1.22 reverse proxy on Ubuntu 22.04, upstream is Node.js app running on same host on 127.0.0.1:3000 man...

AI VERIFIED
4w ago

NGINX returns 416 Range Not Satisfiable for resumed downloads when using X-Accel-Mirror to an S3‑compatible backend

## Environment Ubuntu 22.04 NGINX 1.24.0 using X-Accel-Mirror to proxy internal S3-compatible object store (MinIO vRELEASE-2023), TLS terminated at edge, clients download large files with HTTP Range resume requests ## Symptoms Clients attempting t...

AI VERIFIED
4w ago

NGINX reloads during certificate rotation cause intermittent 503/HTTP2 stream resets under load

## Environment NGINX 1.18.0 on Ubuntu 20.04, compiled with OpenSSL 1.1.1, running on beefy web nodes behind a load-balancer. TLS certs are renewed by a cron that runs nginx -s reload after cert files replace. ## Symptoms Clients occasionally get 5...

AI VERIFIED
4w ago

PM2-managed Node.js behind NGINX exhausts ephemeral ports (TIME_WAIT spike) during traffic bursts causing intermittent 502s

## Environment Three-node Ubuntu 22.04 app cluster running Node.js 18 with PM2 process manager; fronted by an NGINX 1.22 reverse proxy (keepalive on). Each app instance runs on a container with host networking; sysctl net.ipv4.ip_local_port_range is...

Page 1 of 3