A virtual directory is a directory name (also referred to as “path”) that you specify inside IIS to map to a physical directory on a server. Think of it as a pointer to where the files are. In other words, if you want to use, for example, ASP.NET scripts from a subfolder of your domain, you need to configure this subfolder as a virtual folder.
You may even specify a name for the virtual directory different from the physical directory, so it is more difficult for users to discover the actual physical file structure on your server because the URL does not map directly to the root of the site.
The new control panels (cp6-cp10) allow users to set up an application/virtual folder for ASP.NET applications on the server through a set of operations in Web Options of the domain. Please use the following step-by-step instructions to assist you in setting up a virtual folder:
It is required to enable language support for every application separately. Here is an example to enable ASPNET:
Web Directories and Web Applications → Web application -dir_name → Go → ASPNET → On.
Note: ASP scripts will not work in any application directory since ASP mapping is not installed and cannot be added to the control panel in any way. This can be added manually by our System Administrators, but the best solution is to split ASP and ASP.NET-driven pages and do not use .ASP in application directories.