522 error on new domain
I have a domain registered outside of cloudflare, which I successfully transferred so I can set DNS rules on cloudflare. This works perfectly and I have used this domain for about 2 years.
Today I bought a new domain from cloudflare and set it up the same way as I did my old domain with ddns via caddy reverse proxy. The dns rules were correctly auto updated and point to
the same IP as the DNS rules on the old domain.
The problem is that, now, despite having new routes setup on caddy for that domain (caddy also successfully gets certs for it), it seems that cloudflare cannot reach my server and trying to access my website returns 522.
I don't know how this new domain does not work, all of the troubleshooting for this error is not helpful as I have check:
* I am pointing to the right IP
* I am the admin so I can see that caddy is not being hit by cloudflare
* The server is already reachable by other cloudflare IP's
Any help would be appreciated, thanks.
7 Replies
I'd double check your ssl/tls mode under ssl/tls -> overview, which is under the website in your cf dashboard. Make sure it's Full (Strict), and not Flexible.
where do I go from here?
this is under ssl/tls

ohh I got it!
omg it fixed it !
Configure -> Custom SSL/TLs -> Select Full(Strict)
ah nice
thank you !
so cloudflare was not using tls with my server, no wonder ...
yea, it was trying to connect over http/80
thank you again ! you just saved me a huge headache