Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I hav a azure vm with a public ip, I had 2 websites hosted in it on iis. Im able to access them locally on vm. Now how to make them available publicly on internet? Pl help im very new in hosting the websites

What I have tried:

I tried by specifying the public ip on bindings and in dns manager (configured dns locally) but when i gave the public ip im not able to browse the website instead i was redirected to IIS default start page
Posted
Comments
F-ES Sitecore 1-May-16 15:29pm    
You have to "bind" the host names you want for each site to the relevant site via the "Bindings" settings. So set "mysite1.mydomain.com" to one and "mysite2.mydomain.com" to the other. If you're looking to use the IP itself (ie http://1.2.3.4) then you can't bind the same IP\port to different sites (how would IIS know which site you are referring to) so in that instance you'll need to bind each site to a different port so it would be http://1.2.3.4 for one site (bound to 80) and http://1.2.3.4:8080 for the second site (bound to 8080 as an example).
Member 12384238 1-May-16 17:22pm    
Hi, I tried in that way but no luck ! i configured the website bindings to host:mysite1 and ip with public ip but not able to browse it on internet. Do i need to configure some else in this case as im using azure vm and default azure dns

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900