What is the name of the domain?
What is the issue you’re encountering
SSL Not Working For root domain but working for www.domain.com
SSL Not Working For root domain but working for www.domain.com
Neither the naked domain, nor the www
is Proxied ().
You will need to fix the problem on your origin (the Azure server you’re sending the traffic to), by configuring your origin to also accept the naked domain (as well as to generate a certificate for it).
When I try to add custom root domain in Azure CDN as a custom domain it gives me the following error: We couldn’t find a DNS record for ‘sruthianem.com’ that points to ‘sruthianem.azureedge.net’. Before you can associate a domain with this CDN endpoint, you need to create a cnamerecord with your DNS provider for ‘sruthianem.com’ that points to ‘sruthianem.azureedge.net’.
A CNAME is not valid at the apex. While Cloudflare will let you enter one anyway, it will “flattened” which means the IPs returned by the canonical name will be published as A or AAAA records for hostnames. Proxied hostnames will also be published as A and AAAA records using Cloudflare proxy IPs.
You can follow the Tutorial to redirect from your apex to the www
hostname.
Sounds like Azure is very strict, and require to see the actual CNAME
target they define, in the public DNS hierarchy.
As such, you’re out of luck with using the naked domain with them.
→
Alternative solution:
You’ll make the DNS record for the apex (naked domain) be like this:
Type: AAAA
Name: @
, or example.com
IPv6 address: 100::
Proxy status: Proxied:
And then you configure a Redirect Rule like this:
→ https://dash.cloudflare.com/?to=/:account/:zone/rules/redirect-rules
Your visitors will then be redirected from https://example.com
to https://www.example.com
by Cloudflare.
This topic was automatically closed after 15 days. New replies are no longer allowed.