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

How to fix it

  1. Check that the web server is running, and start it if not (for example systemctl status nginx).
  2. Allow Cloudflare’s IP ranges in the server’s firewall.
  3. 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.

Related errors