Website error guides / Cloudflare
Cloudflare error 520: web server returned an unknown error
In short: Cloudflare reached your server, but the reply it got back was empty, cut off or not a valid web page. Cloudflare itself is working; the problem is on your own server.
Common causes
- The web server or the application (PHP, Node and so on) crashed while answering.
- The server closed the connection before sending a full reply.
- Very large response headers or cookies, larger than Cloudflare accepts.
- A firewall or security plugin on the server resetting Cloudflare’s connections.
How to fix it
- Open the site directly on the server’s IP address, bypassing Cloudflare, to see the real error.
- Check the web server’s error log and the application log around the time of the error.
- Restart the web server and the application (for example PHP-FPM).
- Make sure the server’s firewall allows Cloudflare’s IP ranges.
Who to contact: your hosting provider or web developer, not Cloudflare.
Know before your visitors do
PingTurret checks your site from several locations every minute. When it goes down, the alert says the likely cause and who to contact. Free for up to 20 monitors.