How to point domain in DNS zone to static website

ohj 21 Reputation points
2020-11-23T14:33:11.42+00:00

Hello.

We have a domain that's currently hosted with One.com. I have created a DNS Zone in Azure, and have entered the name servers from Azure into the domain configuration at One.com. When doing an nslookup on the domain, I can see that the name servers have been updated.

I have also created a CNAME record in the Azure DNS Zone pointing "www.<domain>.no" to the primary endpoint of a storage account static website. But now I'm just getting an InvalidUri error message. What am I doing wrong here?

41943-image.png

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
685 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,208 questions
0 comments No comments
{count} votes

Accepted answer
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2020-11-23T20:26:03.337+00:00

    Are you accessing this site through HTTPS, or does your storage account require access through HTTPS? If so, you cannot map a custom domain to a azure storage static website directly, you must go through a CDN or Application Gateway. Your current setup should work for HTTP.

    Also, make sure that you can get the website without issues when accessing the storage URI directly.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.