Error 521 after messing with apache's configuration
I was trying to solve an apache ssl error and must have broken something, now i can't figure it out. My wordpress site is offline despite the fact the apache service is running and not showing any errors anymore, what do i do?
1 Reply
Error 521 is a Cloudflare-specific error. It happens when your web server refuses to connect with Cloudflare.
Since your web server is up and running, it may be blocking Cloudflare IP addresses. To see whether your site itself is up, you can run curl -v $IPAddress. A 200 OK response means that there may be a firewall or other issue preventing Cloudflare from communicating with the web server. A "host not found" or "failed to connect" error would indicate there is an issue with Wordpress or your web server itself.
200 OK
If you get this message, check to ensure you don't have any firewall rules blocking Cloudflare. You can find a full list of Cloudflare IP ranges here. Whitelist these ranges in iptables, firewalld, .htaccess, or whichever wrapper program you use to manage your firewall.
Failed to connect/host not found
This indicates an issue with your web server. Check the web server logs to see if there are any errors indicated; the exact location of the logs will depend on your web server application and your Linux distro. You'll also want to make sure that your Linode itself is responsive and not having any kind of connection issues that may be blocking connection.