521 error cloudflare

  • Posted October 7, 2019
  • CDN

I’m getting a 521 error after i setup Cloudflare DNS and ssl I switched from flexible to full and full strict and kept getting 521 error i then moved back to flexible and then get a 522 error and i setup droplet firewall to be on 443 but still getting 521 error


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


If you have not configured an SSL certificate on your droplet, you would need to open port 80 as well so that CloudFlare could connect to the droplet.

I would recommend checking out the official documentation on how to set that up as well:

And also if you are interested in setting up end to end HTTPS, you could take a look at this article here:

Regards, Bobby