Error 521 SSL Cloudflare

Posted December 27, 2016 34.7k views
NginxUbuntu 16.04


I installed WordPress on my Ubuntu droplet and activated Cloudflare SSL.

Now when I am trying to go to the site, the site is, as usual, redirecting to https version but is returning error 521. How do I rectify this error?


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.

Submit an Answer
1 answer

CloudFlare provides this troubleshooting document for 521 errors. The most common reason for this error is if your web server process is not running or listening on the expected port. See if you can access your web server directly by the IP just in case.