medium

Too Many Redirects (HSTS)

HSTS configuration creating a redirect loop between HTTP and HTTPS.

Common Causes

  1. 1Load balancer terminates SSL but backend redirects to HTTPS again
  2. 2Cloudflare Flexible SSL with server-side redirect

How to Fix

Trust proxy headers

if ($http_x_forwarded_proto = 'http') {
    return 301 https://$host$request_uri;
}

Only redirect when the original request was HTTP.

How ObserveOne Helps

A redirect loop makes the site unreachable even though the server is up. An ObserveOne uptime check fails on the loop, so a redirect change that goes wrong pages you the moment it ships.

Start Monitoring Free

Related Errors