Skip to content
CRASH

HTTP status code

521 Web Server Is Down

A Cloudflare-specific error: Cloudflare tried to connect to your origin server and the connection was refused.

Common causes

  • The web server (nginx, Apache) is stopped or crashed.
  • A firewall or security plugin blocks Cloudflare IP ranges.
  • The origin listens on a different port than Cloudflare expects.

How to fix it

  1. Start the web server and confirm it answers locally.
  2. Allow the published Cloudflare IP ranges in your firewall.
  3. Match the SSL mode in Cloudflare to what your origin actually serves.

Related errors

Next time your site goes down, hear it from Crashy first.

Not from a customer. 1 website is free — no card.