I keep getting a error 521 on a site I have running the one-click WordPress install on a Ubuntu droplet. I saw on Cloudflare’s website that you need to make sure their IPs are whitelisted which I did through the firewall in networking. The SSL I have activated currently is Full (non strict). I found another thread that suggested running this command: iptables -A INPUT -p tcp -m tcp –dport 443 -j ACCEPT

This did not solve the issue for me. What is odd is that I can refresh the page sometimes and it lets me go to the site, but when I navigate to another page it happens almost every time, but again allows me to go through if I refresh.

Any help would be greatly appreciated!

1 comment
  • Not enough info really. You can disable Cloudflare to see if your server resolves or not then narrow down the issue. If you didn’t install SSL on your server yet, might also be the problem.

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.

×
2 answers

Hello,

In order to use the Full SSL option provided by Cloudflare you need to make sure that you have an SSL certificate installed on your Droplet as well.

If this is not the case, what I could suggest is changing the SSL mode from Full to Flexible and then it should fix the problem for you.

Hope that this helps!
Regards,
Bobby

  • When I switch it from Full to Flexible the site gives an error saying “too many redirects” and doesn’t load. Do you think this may be a caching issue?

    • Hello,

      There a few things that could be causing the redirect:

      • Make sure that your Wordpress Site and Home URLs are set to https://yourdomain.com

      • Check your Apache Vhost and make sure that you don’t have any redirects there

      • Check your .htaccess file for any rewrite rules

      • Disable any redirect plugins if you have any

      Let me know how it goes!
      Regards,
      Bobby

I wanna move domain from Godaddy to Digital Ocean With database Without any plugin. Is it Possible via FTP or putty?

What are the steps that needed for me.
Any one give me a suggestion with complete information.

Submit an Answer