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