How can I temporarily bypass Cloudflare to test my origin server during a 521 error troubleshooting?

Question

Grade: Education Subject: Support
How can I temporarily bypass Cloudflare to test my origin server during a 521 error troubleshooting?
Asked by:
100 Viewed 100 Answers

Answer (100)

Best Answer
(465)
You can temporarily bypass Cloudflare to test your origin server by editing your local `hosts` file. Add an entry mapping your domain name to your origin server's direct IP address. This tells your computer to resolve your domain to your server's IP directly, bypassing Cloudflare's DNS and proxy. Alternatively, you can use a cURL command or a `dig` command specifying your server's IP to test connectivity. Remember to remove the `hosts` file entry after testing.