chobo2
chobo2

Reputation: 85785

How to host a site in Azure? I can't figure out how to hook it up to my domain

I am using azure and have created a Windows 2016 server VM(not the classic mode). I have installed iis and opened up port 80. I can hit my ip and get the IIS page.

Now I am trying to host one of my very simple sites(per html page, with js/bootstrap).

I put it in IIS and set to an ip address(this was given to me as an option) instead of unassigned and left port 80.

I then went to namecheap and put my public ip from azure as my A record and in Azure I created a DNS Name and used that as the CNAME (for * and www) but I still get "not found" when I got to the domain name.

Upvotes: 0

Views: 63

Answers (1)

Sa Yang
Sa Yang

Reputation: 9401

I did a test in my lab and I could browse the Website from my Azure with my own domain. Steps are below:

  1. After add IIS feature in my VM, I opened 80 port in the NSG;

enter image description hereenter image description here 2. Configure a DNS name and static IP for the VM:

enter image description here

  1. Add A records in my Domain provider:

enter image description here

4.Just wait a moment, I can browse it from my own domian:

enter image description here

Hope this helps!

Upvotes: 0

Related Questions