Website error guides / Cloudflare
Cloudflare error 521: web server is down
In short: Cloudflare tried to connect to your web server and the server refused. Usually the web server software isn’t running, or a firewall is blocking Cloudflare.
Common causes
- The web server (Apache, Nginx, LiteSpeed) is stopped or crashed.
- The server’s firewall or a security tool blocks Cloudflare’s IP addresses.
- The server was restarted and the web server didn’t start with it.
- The site is set to use HTTPS at Cloudflare, but the server doesn’t listen on port 443.
How to fix it
- Check that the web server is running, and start it if not (for example
systemctl status nginx). - Allow Cloudflare’s IP ranges in the server’s firewall.
- Check that the server listens on the port Cloudflare connects to (80 or 443).
Who to contact: your hosting provider or server administrator, not Cloudflare.
Know before your visitors do
PingTurret checks your site from several locations every minute. When it goes down, the alert says the likely cause and who to contact. Free for up to 20 monitors.