How to do it...

To create two websites that share the same IP address and split traffic by using host headers, follow these steps:

  1. On your web server, open up File Explorer and create a new folder called C:\Websites. Inside this folder, create two new folders and call them Site1 and Site2.
  2. Inside each folder, create a new Default.htm file. You should now have two different Default.htm files, one sitting inside the Site1 folder, and one sitting inside the Site2 folder. These will be our example websites.
  1. Put some text inside each of those Default.htm files. Make sure that whatever text you write in them distinguishes between the websites so that we can know it is working properly when we test in a few minutes.
  2. Open Internet Information ...

Get Windows Server 2016 Administration Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.