Storage account - static web site - Custom Domain Name

PKS 1 Reputation point
2020-11-10T02:24:42.353+00:00

Hi,

I have created a storage account to host and static website.
Created build for my Angular Webapp and published the dist folder to sorage account. I am able to browse the endpoints and access the published website.

Added Custom Domain Name by following the instructions. But I am able to access the website using custom domain name.

I am seeing an error in the browser "Can't reach this page"

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,570 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. PKS 1 Reputation point
    2020-11-10T02:27:40.147+00:00

    Below is the error message I saw initially

    This XML file does not appear to have any style information associated with it. The document tree is shown below. <Error> <Code>AccountRequiresHttps</Code> <Message>The account being accessed does not support http. RequestId:7feb693a-901e-000e-0403-b7858d000000 Time:2020-11-10T01:46:49.0086470Z</Message> <AccountName>valueex</AccountName> </Error>

    0 comments No comments

  2. deherman-MSFT 34,841 Reputation points Microsoft Employee
    2020-11-10T17:38:19.893+00:00

    @PKS
    It seems you are accessing the website via HTTP but have Secure transfer required enabled for your storage account. If you wish to use HTTPS you will need to use Azure CDN. See Mapping a custom domain to a static website URL. Please try disabling secure transfer required and see if it resolves your issue.

    Hope this helps! Let me know if you have further questions or issues.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments