Cloudflare causing too many redirects

Posted March 18, 2018 3.2k views
ApacheUbuntu 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?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 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.

  • thanks it’s work
    you saved my time

  • Thanks it worked for me as well

Submit an Answer