Category Archives: iis

How to Host Multiple Websites on IIS

Internet Information Services (IIS, formerly Internet Information Server) is an extensible web server created by Microsoft for use with the Windows NT family.[2] IIS supports HTTP, HTTP/2, HTTPS, FTP, FTPS, SMTP and NNTP. It has been an integral part of the Windows NT family since Windows NT 4.0, though it may be absent from some editions (e.g. Windows XP Home edition), and is not active by default.

This IIS tutorial will show you how to host multiple websites on one IIS server. To get to this point you will need to have IIS installed, you can see how to do so here:

How to install IIS on server 2016

If you are testing on one server you may want to edit the hosts file like i did, you can see how to do so here:

How to edit the hosts file on Windows Server 2016

Step 1

I edited my hosts file so i had the two urls:

testsite1.com

testsite2.com

Both looking at 127.0.01 (Localhost)

Step 2

Open IIS, and right click sites and select Add Website

Step 3

Enter values relevant to you, if you are following along exactly with the tutorial enter the following values.

Sitename: testsite2

Physical path: C:\inetpub\wwwroot\testsite2

Binding: testsite2.com

Then click ok.

Step 4

Click explore on the right hand side of the screen .

Step 5

Create a file called index.html in this directory.

Enter the text, this is test site 2.

Step 6

Move up one directory level to.

C:\inetpub\wwwroot

Create a file called index.html

enter the text:

This is test site 1

Step 7

Open a browser and navigate to:

http://testsite1.com

You should see the test site 1 page:

Step 8

Open a browser and navigate to:

http://testsite2.com

You should see the test site 2 page:

A full video tutorial can be found here: