Custom domains
I'm implementing a blogging platform and I want to support custom domains: allowing users to use their domains instead of my own. I'm not sure how to implement this with Cloudflare. I'm using workers and my own domain is also there.
Cheers,
Pau
3 Replies
Cloudflare Docs
Custom hostnames · Cloudflare for Platforms docs
Cloudflare for SaaS allows you, as a SaaS provider, to extend the benefits of Cloudflare products to custom domains by adding them to your zone as custom hostnames. We support adding hostnames that are a subdomain of your zone (for example, sub.serviceprovider.com) and vanity domains (for example, customer.com) to your SaaS zone.
To do this for free, take a look at the Caddy web server and put that in front of your app
just keep in mind that won't work with cloudflare proxy enabled