Configuring virtual directories with different application pools
In this recipe, we are going to add a framework version 4 application pool called DefaultAppPool and framework version 2.0 application pool called 2and3.5Apppool to the virtual directory step by step.
Getting ready
To step through this recipe, you will need a running IIS 10.0 instance with a virtual directory created. You should also have administrative privileges.
How to do it...
- Open Server Manager on Windows Server 2016. Click on the
Tools
menu and open IIS Manager. - Expand the IIS server (
WIN2016IIS
). You will get a list ofApplication Pools
andSites.
- Expand
Sites
and selectmysite.com
, and right-click onmysite.com
. You will seeAdd Application
:

- Click on
Add Application...
, and you will get theAdd virtual directory with Application Pool
option. Enter the alias nameVDApplication
; we selectedDefaultAppPool
, which has framework version 4.0.

- We've already created a folder in
C:\Websites\VDApplication\
. Add the physical path. We...