ERR_TOO_MANY_REDIRECTS
nginx
config_error
ai_generated
true
ERR_TOO_MANY_REDIRECTS: redirect loop
ID: nginx/http-to-https-loop
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1 | active | — | — | — |
Root Cause
HTTP to HTTPS redirect creating infinite loop behind LB/proxy.
genericWorkarounds
-
92% success Check X-Forwarded-Proto header: if ( \!= "https") { return 301; }
-
88% success Configure real_ip_header and set_real_ip_from for proxy trust
Dead Ends
Common approaches that don't work:
-
Remove HTTPS redirect
82% fail
Traffic unencrypted
-
Force scheme in redirect
78% fail
Breaks behind reverse proxy