When I got this blog installed and set up on a Hetzner VPS, all was working fine, until I switched on the Cloudflare Proxy in the DNS settings. I faced an issue where Chrome and other browsers were returning the following error. "This page isn’t working blog.lanway.dev redirected you too many times." error code: ERR_TOO_MANY_REDIRECTS
The Setup
- Hetzner CPX11 - 2 CPU/2GB RAM/40GB Storage
- Ghost Install & Lets Encrypt SSL
- Cloudflare DNS
After doing some digging on various forums and blogs, I eventually found the answer.
The Solution
This is rather simple, as Ghost generates its own self-signed SSL certificate by Let's Encrypt, therefore Cloudflare's Flexible SSL is not required. To fix this head over to your Cloudflare dashboard and go to SSL/TTL
section and set the SSL encrypt mode to Full (Strict).
After a few seconds the redirect issue should be gone.