CNAME Setup - How does it work?

Hi there, can anyone explain me how does it work CNAME Setup, please?
I need to do the following:

  1. I have a website www.stiteA.com. The domain is not delegated to CloudFlare
  2. I have a domain on cloudflare: MyDomain.com
  3. I have a Load Balancer configured on cloudflare: www.mydomain.com
  4. I want to redirect the traffic to www.siteA.com to www.mydomain.com. This is working now with a cname record on siteA DNS.

But this option requiere that I manage the SSL certificate on my webServer. I whant to know if I have any option to create certificates SSL for www.siteA.com and manage it on Cloudflare.

Schema:
https://www.siteA.com (cname record to www.mydomain.com) -----> www.mydomain.com (LoadBalancer) -----> Public IPs-----> WebServer

I foun this, but I don’t know if it solve my problem

1 Like

Hello,
What you’re looking at here is more SSL for SaaS:


(it requires an Enterprise)

You could also add “siteA” on Cloudflare and request Support to allow Cross User CNAME:


(it requires a Pro plan at least)

And maybe you could look at using ResolveOverride in a Worker on “siteA”:

1 Like

A Pro plan will allow for a CNAME between two zones in your own account?

looks to be the case

Error 1014: CNAME Cross-User Banned

Common cause

By default, Cloudflare prohibits a DNS CNAME record between domains in different Cloudflare accounts. CNAME records are permitted within a domain ( www.example.com CNAME to api.example.com ) and across zones within the same user account ( www.example.com CNAME to www.example.net ).

2 Likes

You can CNAME from one domain in your account to another domain in the same account by default.
If you try from 2 different accounts a 1014 error is returned.

4 Likes