How to set up a virtual folder on a Windows 2003 server with IIS6

What is a Virtual/Application Folder?

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.

How to setup Virtual Folders /Directories

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:

  1. Open the “Domains” section of your control panel.
  2. Select the domain name in question.
  3. Find “Web Service” and click the “Edit” button.
  4. Find “Web Directories Settings” and click the “Edit” button.
  5. Click the “Add” button.
  6. Web directory name → Dir name.
  7. Web directory path relative to the user home → domainname\dir_name.
  8. Click on “Submit.”
  9. Verify that Web Application is turned to the “On” position.

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.

Was this article helpful?

Yes (0)
No (0)

We're sorry you didn't find this article very helpful. Please help us improve it by leaving your feedback below.