Custom hostnames with pages don't seem to work
Hello there, I've configured a fallback domain for my custom hostnames, it's a proxied CNAME to my pages' domain. However, I'm getting this error:
50 Replies
domain fall.warpfactor.dev
Cf for SaaS doesn't work at all with Pages as far as I know. Pages under the hood is using the same thing
hmmm
ok
Just add your other domain directly as a Custom Domain in your Pages project
do they work with r2?
hmm
I believe I tested this before and the answer was also no, but you could pretty easily just use a Worker bound to the r2 bucket / the open source render library can help you handle that as well, supporting range requests for example
hmmm
my use case is the following:
- I want the custom hostname to be routed to my worker
I'm trying to do that
but it doesn't seem to be working
You can use Workers with Custom Hostnames no issue, did you create the match everything route?
I did not route anything
Using a Worker as your origin · Cloudflare for Platforms docs
If you are building your application on Cloudflare Workers, you can use a Worker as the origin for your SaaS zone (also known as your fallback …
Ok i will look into that
You can't use Worker Custom Domains if you're trying that, need to use HTTP Routes like in that guide
ok
I'll try it
and update it
initializating
lets wait a bit and see what happens
still not working
@chaika.me
I tried a worker
pages
and a normal ip
none of them work
same error tho
What are you setting the fallback origin to?
a ip address
that points to a google load balancer
that itself serves a google storage bucket
nah I meant for Workers
it shows like this
For example,
create a record
AAAA
fallback.yourdomain.com
100::
Proxied
Add a route */*
on that zone for your worker
(keep in mind when you add that, it's going to take over all non-worker route traffic. If you want to exempt your zone, use *.warpfactor.dev/*
service none route)
Set the fallback to fallback.yourdomain.com
hm
You can't use Worker Custom Domains, it has to be a route
ok
let me check
I have that too
That's not the same thing
hm
but would it route all traffic of the zone to that worker?
Yes, if you want to exempt your zone, add a
*.warpfactor.dev/*
service none route firsthmmm
ok
done
what If I want to route an external domain to a specific worker?
I believe you can just add a route containing it, ex "subdomain.externaldomain.com/*
hmm
ok
not sure though, you might need a worker to route things around and use service bindings
what do I point the external domain too?
your fallback dns
ok
got it
it's active
yeiii
hmmm
Hmmm
@chaika.me custom domains still not working
not going to the worker nor the fallback
the demo domain is https://w.demowarpfactor.dev/ -> CNAME fall.warpfactor.dev.
fall.warpfactor.dev is a ip address that has a worker route
the fall back works
I get a ERR_SSL_VERSION_OR_CIPHER_MISMATCH on the worker
What does your configuration look like within Custom Hostnames?
Is the Custom Hostname w.demowarpfactor.dev active/pending/etc?
Oh I didn't see that
It's pending verification
Interesting
I added the txt record hours ago
silly question, but are you sure you added them to the right zone?
let me check
OH
its a google domains thing
it added as _acme-challenge.w.demowarpfactor.dev.demowarpfactor.dev
instead of the other way around
ok
updated
works like a charm
what about root domains?
no
I can't use cnames there
just can't without Enterprise I believe lol
hmmm
damm
" Cloudflare for SaaS with Apex Proxying:
This allows you to support apex domains even if your customers are using a DNS provider that does not allow a CNAME at the apex. This is available as an add-on for Enterprise plans. For more details, refer to Apex Proxying."
I might need to go enterprise then
thanks a lot
hmm actually the way that is written implies you can, but only with a provider that supports CNAME Flattening
I thought it was never at all
you can't cname flatten with Google DNS so I guess that's a moot point eitherway
no problem
You could always just use www subdomain for everything and use something else to redirect from apex -> www
Got it
Makes sense
Thx