Xenforo error when site is offline with Cloudflare

ix2013

Member
A popup error shows when my site is offline and a cached version is displayed by Cloudflare.
It says
Error 521
Web server is down

What is this supposed to show? How can I stop that from appearing?
 

Attachments

  • xenforocf.webp
    xenforocf.webp
    5.8 KB · Views: 15
Get a list of IP addresses used by cloud flare to access your server and whitelist them. If you are using shared hosting then get your host to white list the IP addresses as it is most likely a firewall issue.
This could also be caused by one of the plugins that you may be using to protect your forum from spam. If you have a plugin that required certain amount of time between two requests that could also be causing this.

There is another scenario I can think of and its easy to reverse if that is the case:
If you may have hit that built in feature of xenforo where a user would get delayed page loads and you did that to an IP from cloudflare then that could be causing this error as well. This would only happen if you havent done any modification to show the real IP of a user and every user shows up with cloudflare IP.

These are the only ones that I can think of right now .

I hope this helps :)
 
Last edited:
Also find out from your host if they use some module that restricts number of connections a particular IP can make as that could be causing this problem as well. Some hosts do that to prevent abuse.
 
I have already whitelisited all cloudflare IPs. My problem doesn't have to do with the site being offline. I disabled apache to test the cloudflare offline cache feature.
 
So does anyone know what's supposed to show in that popup box so I can possibly just disable it if it's useless?
 
Top Bottom