522 error when trying to resolve

522 error

I keep getting a 522 error when trying to point my domain to my ip address. I have contacted my isp, namecheap where I bought the domain from and am honestly kind of stuck. I am trying to setup nginx and can’t get it to work until I get this issue solved. Someone please help.

A 522 error happens when a TCP connection to the web server could not be established. This typically happens when our requests to the origin (your webserver) get blocked. Here is what we recommend in order to ensure all requests from Cloudflare are accepted by your server:

  1. Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.
  2. Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to allowlist the IP addresses here: IP Ranges.
  3. Make sure the selected SSL option in the Overview tab of the Cloudflare SSL/TLS app is compatible with your hosting service configuration - What do the SSL options mean?

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