Microsoft IIS 10.0 – Creating a website folder

Install PHP on CentOS 8

In this recipe, we are going to create a separate website directory for each website, for example, mysite, v2mysite, and v4mysite, inside the c:\inetpub\wwwroot path, where we can upload the website application files later in the chapter. We were using the default wwwroot folder to upload the website files, so now we have to publish more than one website. We have to upload all the web files in their own separate directory.

Getting ready

To step through this recipe, you will need a running IIS 10 instance. You must have administrator privileges, which you need to create the website folders.

How to do it…

We are going to create a website folder inside the wwwroot folder for each website.

  1. Open the file explorer, and click on This PC. On the right hand side, you will see your available drives.
  2. Open the C:\ drive, go to the folder name inetpub, and you will get the list of IIS 10.0-related folders. You need to find the wwwwroot folder.



  1. Open the wwwwroot folder. Inside the wwwroot folder, you have to create mysite, v2mysite, and v4mysite subfolders:
  1. Now we have to configure the physical path of the website; we already have three websites:,, and Let’s configure them one by one.
  2. Go to Server Manager, click on the Tools menu, and open IIS Manager.
  3. Expand your IIS server from the Connections pane, expand the Sites folder, and you have three listed websites. Select
  4. Go to the Actions pane, click on Basic settings, and you will get the properties:
  1. We add the Physical path C:\intepub\wwwroot\mysite of the website directory we want to use for this website,
  2. Click on the OK button to finish.
  3. Follow the previous steps to add/update the Physical path C:\intepub\wwwroot\v2mysite of the website directory we want to use for this website,
  4. Click on the OK button.
  1. We will follow the same steps to add/update the physical path of and
  1. Now you can upload the web application files as per the website name and folder. If you need to use different versions of the application pool, you can change the application pool from Basic Settings.

How it works…

We first create subfolders inside the wwwroot directory for multiple web applications. We then created separate directories for,, and We also changed the physical path for all the websites. Now we can access all the websites with their own separate physical paths.

Comments are closed.