Cloudflare for saas not hitting fallback domain instead hitting main domain

Hi there, so I have set up cloudflare for saas. I set up a fallback domain for custom hostname. fallback.domain.com and when any custom host name domain is hit it always route traffic to domain.com server block. I also have a server block set up for fallback.domain.com in nginx and i have a catch all block. Need help.
5 Replies
Ricky U
Ricky U15mo ago
i have the same problem, except i get a error when going to the custom domain, can i ask the fallback.domain.com is a A record? how do you have nginx server on cf?
Ricky U
Ricky U15mo ago
i dont see an option for custom origin servrer in the custom hostnames section :
No description
Ricky U
Ricky U14mo ago
sorry just saw this : "ree one" ? yes i set up a fallback domain as fallback.pm...com ..but before i get in to all this.. i wanted to clarify that i am using pages, and others have said that i should set it up in pages -> cutome domains rather then ssl/tls -> custom hostnames... im frankly confused as to which way to go about this.. using the custom domains tab or the custom hostbames side menu option. for the client, i have told them to add a dns cname record "files" which points to "mysite.pages.dev" so they effectily can go to files.clientdomain.com and have it show mysite.pages.dev
sadek hossain
sadek hossainOP14mo ago
we fixed it... fallback was not correctly hitting
Ricky U
Ricky U13mo ago
I set up custom domains for my customers so in my pages project, i set up a custom domain from xxx.mycustomer.com to my pages.dev domain.. and my customer has set up a cname record from xxx to my pages.dev. domain Now when he visits his custom subdomain it shows our pages.dev domain -- All good, but i only want the custom domain to work only when they are visting the dashboard with the suffix /d i.e. xxx.mycustomer.com/d/ -- all other should be show my pages.dev domain
Want results from more Discord servers?
Add your server