Virtual directories in Plesk

A virtual directory is a URL path such as example.com/app that IIS maps to a folder on your hosting. Use it to run a separate application in part of the site (for example, a second ASP.NET application), or to give a folder its own permissions or ASP.NET settings.

Where to find it: the domain card, the Dashboard tab, the Files & Databases group, Virtual Directories.

Domain card: Virtual Directories in the Files & Databases group
Domain card: Virtual Directories in the Files & Databases group

How to create a virtual directory

  1. Open Virtual Directories. The site's directory structure opens.
  2. Click the button to create a virtual directory (Create Virtual Directory).
  3. Enter a name — it becomes part of the URL (for example, app gives example.com/app).
  4. Specify the folder it points to. The folder must be inside your hosting.
  5. Select the permissions you need. For a separate ASP.NET application, enable application creation (Create application).
  6. Save.

Upload the application files to the chosen folder via FTP or File Manager first, then check the URL in a browser.

Permissions and security

  • Give write permission only to a folder where the application really saves files (uploads, cache).
  • Better not to enable directory browsing on a production site.
  • Site-wide IIS settings are on the IIS Settings page.

Common mistakes

  • An application in a virtual directory inherits the site root web.config — conflicting sections cause a 500 error. Remove the duplicated sections.
  • 403.14 — there is no index page in the folder.
  • The application cannot find its DLLs — the directory was not created as a separate application.
Questions and answers
A subdomain is a separate site with its own address (app.example.com). A virtual directory is part of the main site's address (example.com/app).
If the application does not work there, host it on a subdomain: it then has its own httpdocs root and its own pool.