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
- Start the web server and confirm it answers locally.
- Allow the published Cloudflare IP ranges in your firewall.
- Match the SSL mode in Cloudflare to what your origin actually serves.