Simple web site hosting in Azure

Evgeny Lotosh 156 Reputation points
2022-03-27T16:32:01.377+00:00

I need to host a very simple web site in Azure. I have a DNS name and can control domain name servers at the DNS registrar.

  1. There is a possibility to use a blob for web site hosting ("Static web site" tab in the storage account configuration). It works but the created link is HTTPS. I don't want to pay for an SSL certificate so I want it to be HTTP. Is it possible?
    1. I can create a DNS zone in Azure. Is it possible to make it so that when the domain name is entered in the web browser (without "www" or something like that), it would be automatically redirected to the web site HTTP(S) link? I know it's possible if there is a dedicated IP address for the web site but the blob (and the web site address) doesn't have one, so CNAME is the only option. However, CNAME record name is not allowed to be empty.
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
690 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,917 questions
{count} votes

Accepted answer
  1. SaiKishor-MSFT 17,236 Reputation points
    2022-03-30T08:18:27.577+00:00

    @Evgeny Lotosh Thank you for reaching out to Microsoft Q&A. I apologize for the delay in responding to your question.

    Answering your questions below:

    1.There is a possibility to use a blob for web site hosting ("Static web site" tab in the storage account configuration). It works but the created link is HTTPS. I don't want to pay for an SSL certificate so I want it to be HTTP. Is it possible?

    • If you disable Secure Transfer Required option under the Configuration settings of the Storage Account, you can use HTTP for the website and it should work. Here is how to do it: Please choose the Disabled option here.

    188311-secure-tx.png

    You can also use a Custom Domain and use HTTP protocol. Please refer to this link for enabling this option.

    I can create a DNS zone in Azure. Is it possible to make it so that when the domain name is entered in the web browser (without "www" or something like that), it would be automatically redirected to the web site HTTP(S) link? I know it's possible if there is a dedicated IP address for the web site but the blob (and the web site address) doesn't have one, so CNAME is the only option. However, CNAME record name is not allowed to be empty.

    • This is not an option as there is no IP address and A CNAME cannot be placed at the root domain level, because the root domain is the DNS Start of Authority (SOA) which must point to an IP address. The only work around I can see is to do Forwarding at your DNS provider. Please check this Thread for more details regarding the same.

    Hope this helps. Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

    Remember:

    Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

    Want a reminder to come back and check responses? Here is how to subscribe to a notification.

    1 person found this answer helpful.
    0 comments No comments

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.