Fix: HTTPS redirect loop behind Nginx proxy

Symptom
The site enters an infinite redirect loop when accessed via HTTPS.

Cause
Incorrect proxy headers cause Ghost to misinterpret the original request protocol.

Solution

  1. Ensure the X-Forwarded-Proto header is set correctly.
  2. Set the Ghost URL to use HTTPS.
  3. Remove duplicate redirect rules.

Nginx configuration
proxy_set_header X-Forwarded-Proto $scheme;

Verify
Access the site using HTTPS.

Expected result:
The site loads normally with a single redirect.

Notes
Clear browser cache after applying the fix.

This fix is part of Fix Pack – Ghost behind Nginx.

Get all fixes in one place:
https://diorama0.gumroad.com/l/ptrzok