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•16mo ago
I can't see if this has been asked here before, forum searches are bugged for me right now
zegevlier
zegevlier•16mo ago
Can you show a screenshot of it saying connection timed out? That's a strange error...
brettski
brettski•16mo ago
Did you remember to setup www as a route under workers & pages?
iijj22gg
iijj22ggOP•16mo ago
iijj22gg
iijj22ggOP•16mo ago
I was trying to use DNS records
zegevlier
zegevlier•16mo ago
Ah, did you add the custom domain to the pages site? You need to add it there as well
brettski
brettski•16mo ago
You need to tell your workers which domains to listen to and set the domain to point to CloudFlare (your CNAME)
iijj22gg
iijj22ggOP•16mo ago
Like this?
brettski
brettski•16mo ago
Workers & Pages Click on your Worker Bottom section, go to Triggers This is where you setup domains and routes
zegevlier
zegevlier•16mo ago
This is a pages site, not a worker this is correct What does it say when you click "Complete DNS setup"?
iijj22gg
iijj22ggOP•16mo ago
I have both a pages site and a worker on seperate domains
brettski
brettski•16mo ago
Ah, said both, so ran with it 😊
iijj22gg
iijj22ggOP•16mo ago
This is weird, because I use Cloudflare's DNS
zegevlier
zegevlier•16mo ago
Seems to work for me now! Can you give it another try?
iijj22gg
iijj22ggOP•16mo ago
Yep, it works now!
zegevlier
zegevlier•16mo ago
🎉
iijj22gg
iijj22ggOP•16mo ago
I really need to update the site lol Anyway, I should get my worker fixed
iijj22gg
iijj22ggOP•16mo ago
Triggers, right?
brettski
brettski•16mo 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•16mo ago
Ah, I see
brettski
brettski•16mo ago
iijj22gg
iijj22ggOP•16mo ago
So I shouldn't touch the DNS records at all for that
brettski
brettski•16mo ago
If you routing a new subdomain, it must be listed int he dns list or it will never resolve
iijj22gg
iijj22ggOP•16mo ago
Well I mean, I shouldn't touch it outside of setting it up in workers and pages
Want results from more Discord servers?
Add your server