Multiple Fallback Origins with Cloudflare for SaaS

:catwave: I am currently running two different services, which allow users to use their custom domains. I have configured Cloudflare for SaaS for service 1 and have fallback origin configured (let's say as abc.example.com), I would like to know if it is possible to add another fallback origin for my second service (let's say xyz.example.com) and be able to manage these users separately?
2 Replies
Chaika
Chaika3w ago
The easiest way is probably just to buy a domain per service (better to seperate things anyway since cf for saas uses some of your zone config too), name them like <product>customdomain.com or something helpful for you to see from logs and such, and then you'd have each domain's fallback origin accordingly/ Enterprise has the ability to set the origin server/fallback per hostname: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/custom-origin/ You could also use a Worker to intercept all the requests and route accordingly or snippet once out of beta and if you ave pro or higher
SoulHarsh007
SoulHarsh0073w ago
:catwave: Thanks, I think I would get a new domain for the second service!
Want results from more Discord servers?
Add your server