Constructing a virtual directory in IIS 10.0
In this recipe, we are going to create a virtual directory step by step. We will add the alias of the virtual directory (alias is the virtual name of a physical directory). We will also apply the settings of the physical path of virtual directory.
Getting ready
To step through this recipe, you will need a running IIS 10.0 instance. You should also have administrative privileges.
How to do it...
- Go to the
C:
drive. We have already created a folder namedWebsites
; under theWebsites
folder, you have to create a folder calledVirtualDirectory
, as shown here:

- Open the
VirtualDirectory
folder, and paste in it some of the HTML files we'd hosted in the previous chapter. We are only usingDemo.html
. You can create your own HTML files:

- Next, you have to open Server Manager on Windows Server 2016. Click on the
Tools
menu and open IIS Manager. - Expand the IIS server (
WIN2016IIS
). We get the listedApplication Pools
andSites
folders. - Expand the
Sites
folder inside...