Error 522 connection timeout for

We are for the past few months getting a 522 connection timed out error for our domain According to our hosting provider this is something that needs do be fixed in Cloudflare. The domain is supposed to be forwarded to a different url, which we have set up in the DNS settings in our hosting platform.

Welcome to the community!

Your hosting DNS settings doesn’t work when using Cloudflare (unless you are on Business or higher, in which you can use a CNAME setup). You should setup the redirection rule in Cloudflare instead.

Thanks! I followed these instructions: Redirecting One Domain to Another

Still getting a 522 connection timed out though, what could be the issue?

Regarding Cloudflare 522 error, may I ask which suggestions from below article for have you tried for further troubleshooting? :thinking:

Before moving to Cloudflare, was your Website working over HTTPS connection with a valid SSL certificate? :thinking:

Kindly, before doing anything at Cloudfalre settings, you could determine if you have a valid SSL certificate installed at the origin host/server by your web hosting provider or your own VPS/dedicated server following the steps from below:

  1. Use the “Pause Cloudflare on Site” option from the Overview tab for your domain at .
  2. The link is in the lower right corner of that page.
  3. Give it five minutes to take effect, then make sure site is working as expected with HTTPS.
  4. Check with your hosting provider / cPanel AutoSSL / / Certbot / Let’s Encrypt or some other and renew it accordingly.
  5. Only then should you un-pause Cloudflare and double-check your SSL/TLS setting to make sure it’s Full (Strict).

May I ask what SSL option have you got selected under the SSL/TLS tab at Cloudflare dashboard for your domain ( Flexible, Full, Full Strict … )?

Here is a way to re-check if you correctly setup the SSL for your domain with Cloudflare:

Any Firewall in front or some kind of an proxy / anti-ddos service like DDoS Guard in between?

kindly re-check if Cloudflare is allowed to connect to your origin host to as follows in the below article:

Nevertheless, Cloudflare IP addresses list can be found here:

1 Like

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