Creating a website folder
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.
- Open the file explorer, and click on
This PC
. On the right hand side, you will see your available drives. - Open the
C:\
drive, go to the folder nameinetpub
, and you will get the list of IIS 10.0-related folders. You need to find thewwwwroot
folder.
- Open the
wwwwroot
folder. Inside the...