Skip to content
MtrXTools

Error 521: Web server is down

Cloudflare could not connect to your origin

Seen in Cloudflare

The origin refused Cloudflare's connection.

Common causes

  • The web server is stopped.
  • The origin firewall blocks Cloudflare's IP ranges.
  • The origin listens on a different port than Cloudflare uses.

How to fix it

  1. Start the web server and check it listens on 80/443.
  2. Allow Cloudflare's published IP ranges.
  3. Match the origin port to the SSL mode.
Check the origin ports

Got a different message? Paste it into the error explainer.

Related errors

All 51 HTTP & CDN errors