question

aka-anoop avatar image
0 Votes"
aka-anoop asked msrini-MSFT answered

Support both apex and www on Azure CDN

I was able to setup custom apex domain using Alias pointing to Azure CDN.
Also was able to successfully add certificates that I purchased from a certified CA(externally) and imported that in to the key vault and linked to the CDN endpoint.
I also added a rule to redirect http to https.

Here is what works:
<domain name>.xyz successfully redirects to https://<domain name>.xyz

Here is what doesn't work:
www.<domain name>.xyz gives "our services aren't available right now. We're working to restore all services as soon as possible"
https://www.<domain name>.xyz gives certificate warning

How can I get www work as well?

Here is my Azure DNS settings

93663-image.png


azure-dnsazure-cdn
image.png (22.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

msrini-MSFT avatar image
0 Votes"
msrini-MSFT answered

Hi,

Try to create a CNAME record for www pointing to your CDN FQDN. Post that try adding the www.yourdomain.com to the CDN and check if that works.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.