Now Hiring: Are you a driven and motivated 1st Line DevOps Support Engineer?

How to Add a Website in Microsoft IIS

Microsoft IIS (2)
Tech Articles

How to Add a Website in Microsoft IIS

What is Microsoft IIS?

Microsoft IIS or Internet Information Services, is a Microsoft-developed application tailored for Windows Server operating systems. It facilitates the hosting of websites, web applications, and various internet-oriented services on servers. Through Microsoft IIS, users can effectively manage and deploy diverse online content and services, contributing to its widespread adoption in the realm of web hosting and server management.

Step 1 — Create a folder for Website files:

Step 1.1:

Navigate to the start menu and type in cmd and click on ‘Run as administrator’. And inside the terminal run:

mkdir C:\Websites\\wwwroot

This will create a website root directory ‘wwwroot’ at ‘C:\Websites\’ location.

Note: you can change the ‘’ to your site name.

Step 1.2:

Once you have created a root directory for your website, now you can place your website source file(s) there.

Step 2 — Add Dedicated Application Pools:

Open IIS Manager from the start menu and on the left, under Connections, right-click on Application Pools and select Add Application Pool

After selecting Add Application Pool, add your domain name and click OK

Step 3— Add your Website to the IIS Management:

In the IIS Manager, on the left, navigate to Sites, right-click on it, and select Add Website…

Now add your site name, the physical path where your website file(s) is located, and your hostname

Note: To have the https protocol, you need to have an SSL Certificate.

Step 4— Add Temporary DNS Record:

Navigate to the start menu and type in cmd and click on ‘Run as administrator. Inside the terminal run:

notepad C:/Windows/System32/drivers/etc/hosts

And in the bottom of the file, type:

[your IP Address]    [Host name]

for me, it’s:

Now you should be able to access your website on your local browser!

Error Handling:

Step 1 — Enabling directory browsing:

If for instance, you get a HTTP Error 403.14 — Forbidden error, then perform the following steps:

1. Open IIS Manager.
2. In the Features view, double-click Directory Browsing.

3. On the Directory Browsing page, in the Actions panel, click Enable.

Step 2 —Specifying default file(s):

Navigate to Default Document:

On the Default Document page, in the Actions panel, click Add, then type in the Website’s file name (with its extension)

Note: Move the newly added file to the top, if not done automatically.

Comments (2)

  1. Hello my loved one! I want to say that this post is amazing, great written and include almost all significant infos. I would like to look extra posts like this.

    January 23, 2024 at 3:57 am
  2. I do not even know how I ended up here, but I thought this post was great. I do not know who you are but certainly you’re going to a famous blogger if you are not already 😉 Cheers!

    January 24, 2024 at 4:42 am

Leave your thought here

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