Administering Virtual Directories
Virtual directories are managed using the same tools as sites and applications. IIS Manager, AppCmd.exe, and PowerShell all provide full administration of virtual directories in IIS 8.0.
Creating Virtual Directories Using IIS Manager
To create a virtual directory for a website using IIS Manager, perform the following steps:
1. Open IIS Manager and right-click on the website under which you want to create the virtual directory.
2. Select Add Virtual Directory.
In the Add Virtual Directory dialog box, type the alias to be used (see Figure 6.10
). This will be the URL from which content is to be accessed.
4. Select the physical location of the directory. The physical path is the location of the content that is to be accessed. This can be a local location or a UNC path to the files. UNC locations can be accessed by specifying remote credentials or by using pass-through authentication of the user accessing the site.
When creating a virtual directory to another location on your server or remotely, ensure that the accounts of the site anonymous user (IUSR) and the worker process identity have the required permissions to read and execute as required. This is discussed in greater detail in Chapter 14, “Authentication and Authorization.”
5. Click OK. The virtual directory will be created on the site. By expanding the site ...