www subdomain times out

Hello! I have two web domains, one has a deployment from Pages and the other from Workers. Cloudflare automatically set up CNAME records for each of the root domains, but if I try to do the same thing with www, it says connection timed out instantly when I try connecting to it.
24 Replies
iijj22gg
iijj22ggOP•2y ago
I can't see if this has been asked here before, forum searches are bugged for me right now
zegevlier
zegevlier•2y ago
Can you show a screenshot of it saying connection timed out? That's a strange error...
brettski
brettski•2y ago
Did you remember to setup www as a route under workers & pages?
iijj22gg
iijj22ggOP•2y ago
iijj22gg
iijj22ggOP•2y ago
I was trying to use DNS records
zegevlier
zegevlier•2y ago
Ah, did you add the custom domain to the pages site? You need to add it there as well
brettski
brettski•2y ago
You need to tell your workers which domains to listen to and set the domain to point to CloudFlare (your CNAME)
iijj22gg
iijj22ggOP•2y ago
Like this?
brettski
brettski•2y ago
Workers & Pages Click on your Worker Bottom section, go to Triggers This is where you setup domains and routes
zegevlier
zegevlier•2y ago
This is a pages site, not a worker this is correct What does it say when you click "Complete DNS setup"?
iijj22gg
iijj22ggOP•2y ago
I have both a pages site and a worker on seperate domains
brettski
brettski•2y ago
Ah, said both, so ran with it 😊
iijj22gg
iijj22ggOP•2y ago
This is weird, because I use Cloudflare's DNS
zegevlier
zegevlier•2y ago
Seems to work for me now! Can you give it another try?
iijj22gg
iijj22ggOP•2y ago
Yep, it works now!
zegevlier
zegevlier•2y ago
🎉
iijj22gg
iijj22ggOP•2y ago
I really need to update the site lol Anyway, I should get my worker fixed
iijj22gg
iijj22ggOP•2y ago
Triggers, right?
brettski
brettski•2y ago
correct. We don't use a cname for those subdomains though. They are set to a non-routable IP (e.g. 192.0.2.1) and proxy status is enabled
iijj22gg
iijj22ggOP•2y ago
Ah, I see
brettski
brettski•2y ago
iijj22gg
iijj22ggOP•2y ago
So I shouldn't touch the DNS records at all for that
brettski
brettski•2y ago
If you routing a new subdomain, it must be listed int he dns list or it will never resolve
iijj22gg
iijj22ggOP•2y ago
Well I mean, I shouldn't touch it outside of setting it up in workers and pages

Did you find this page helpful?