Getting 521 errors without any apparent reason

What is the name of the domain?

yashornaments.in

What is the error number?

521

What is the error message?

Server is down

What is the issue you’re encountering

I get 521 error when I enable cloudflare

What steps have you taken to resolve the issue?

Tried disabling Firewall, Fail2ban
Checked access and error logs
Followed the checklist in community tip for error 521

What are the steps to reproduce the issue?

When Cloudflare is enabled I get 521 errors.

Screenshot of the error

A 521 error happens when Cloudflare is unable to make a TCP connection to your origin server, typically because the connection was refused, which often can be caused by security or firewall software.

I would make sure that your hosting provider confirms that the Cloudflare IP ranges listed in the URL above are fully allowed from any security software, firewall, etc., to ensure there is no rate limiting or blocking of our edge server requests to your infrastructure. This should ensure that Cloudflare can consistently make a connection to your origin server to retrieve content and serve it to your visitors.

We publish a full list of our IP ranges, so that you can allowlist them accordingly.

Because Cloudflare operates as a reverse proxy, the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately allowing the Cloudflare IP ranges to block this traffic - it may see it as excessive or malicious.

But like I said, I completely disabled my firewall and fail2ban and it still didn’t work.

Is it possible to get a more detailed error message received from the server? With the Ray id maybe?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.