www CNAME doesn't work - 522 error
I have configured CNAME for www to point cloudflare page but I get an error 522 when I am trying to open the page via www.genarabkin.com instead of https://genarabkin.com
~ » traceroute www.genarabkin.com 1
traceroute: Warning: www.genarabkin.com has multiple addresses; using 188.114.96.11
traceroute to www.genarabkin.com (188.114.96.11), 64 hops max, 40 byte packets
1 192.168.0.1 (192.168.0.1) 13.489 ms 5.914 ms 8.148 ms
2 pl-ktw01a-rt1.aorta.net (84.116.254.140) 17.178 ms 16.780 ms 21.807 ms
3 * * *
4 pl-waw26b-rc1-ae-4-0.aorta.net (84.116.137.30) 37.716 ms 22.038 ms 22.211 ms
5 pl-waw02a-ri1-ae-0-0.aorta.net (84.116.138.94) 24.744 ms 23.506 ms 21.655 ms
6 * * *
7 162.158.100.25 (162.158.100.25) 24.569 ms
162.158.100.23 (162.158.100.23) 19.812 ms
162.158.100.27 (162.158.100.27) 23.370 ms
8 188.114.96.11 (188.114.96.11) 25.020 ms 24.672 ms 24.409 ms
5 Replies
did you add the cname in your dns settings or via your pages settings
Also if your www site doesn't differ from your root site then maybe just redirect from www to root?
Do you have both sites configured for your pages project?
Ok resolved guys. I found similar post with the page https://community.cloudflare.com/t/dns-cname-www-record-error-code-522/418069/2
I added the www in pages "Custom Domain" and it works now. Seems like it is not enough to add the CNAME in DNS it should be added directly through Pages interfaces otherwise it doesn't work
yes the problem is exactly in this
Correct: https://developers.cloudflare.com/pages/configuration/custom-domains/#add-a-custom-cname-record
To ensure a custom domain is added successfully, you must go through the Add a custom domain process described above. Manually adding a custom CNAME record pointing to your Cloudflare Pages site - without first associating the domain (or subdomains) in the Cloudflare Pages dashboard - will result in your domain failing to resolve at the CNAME record address, and display a 522 error.
Thanks for your help