You may have seen my previous article about IIS installation. In this article, I will cover the steps that need to be taken to host a website on your IISserver.

How to set up a website in IIS

Step 1: Go to your system drive (E.g. C:\) and paste your website files in a new folder. I will choose C:\inetpub\testsite\ here.

Choose a website root folder

Step 2: Open server manager dashboard, click on Tools -> Internet Information Services (IIS) manager.

Internet Information Services (IIS) manager

Step 3: In IIS manager, stop the default website which is using port 80. Expand Sites, right-click Default Web Site -> Manage Website -> stop.

Stop default website in IIS
Step 4: Right-click Sites and then click Add Website.
Add website in IIS

Step 5: Provide the site name, physical path to the inetpub folder and click OK.

Set site details like domain name and path

Step 6: Choose an IP address for the binding, protocol is (http), and the host name. Leave Start Website immediately checked. Click OK.

set protocol and IP

Step 7: If you have a DNS server and you are using it, create an entry for mapping the hostname to IP address. Otherwise, use the hosts file located in the directory C:\Windows\System32\drivers\etc to configure the domain name of the website.

Configure hosts file

You are done with the hosting configuration of your website. Open your browser and type in the domain name that you have chosen for the site, in my case to see the html files of your website in the btowser.

How to Host a Web Site in Internet Information Server manager in Windows Server 2012 R2

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn

3 thoughts on “How to Host a Web Site in Internet Information Server manager in Windows Server 2012 R2

  • Avatar
    September 11, 2019 at 1:45 pm

    I need to host my domain in my server 2016. Could you tell me what is the requirements .

  • Avatar
    June 3, 2020 at 5:31 pm

    Thanks for the wonderful information
    Now what if i want my site to be viewed by every device across the world not only those i share with the same domain ho can i do it


Leave a Reply

Your email address will not be published. Required fields are marked *