Cloudflare causing too many redirects

March 18, 2018 565 views
Apache Ubuntu 16.04

Hi Everyone!

I recently created a droplet for my website and successfully installed the Lets Encrypt Certificate.

After that, i signed up with cloudflare, turned off the cloudflare SSL and updated the nameservers. Since then, when i try to open my website, it displays the error: " TOO many Redirections".

When I pause the cloudflare, it starts working fine again.

When the Lets Encrypt certificate was not installed, cloudflare and digitalocean were working fine together.

Can someone please tell me how can i correct this error and make cloudflare and digitalocean work together again?

2 Answers
sid431 March 18, 2018
Accepted Answer

Problem Resolved by changing SSL settings in cloudflare to FULL

  • Thank you!! It worked

  • Worked like a charm, thank you!

  • Thank you for this fix. Here's the explanation as to why this happens from their Help section underneath SSL:

    Flexible SSL: You cannot configure HTTPS support on your origin, even with a certificate that is not valid for your site. Visitors will be able to access your site over HTTPS, but connections to your origin will be made over HTTP. Note: You may encounter a redirect loop with some origin configurations.

    Full SSL: Your origin supports HTTPS, but the certificate installed does not match your domain or is self-signed. Cloudflare will connect to your origin over HTTPS, but will not validate the certificate.

Have another answer? Share your knowledge.