Knowledge Base

How to manage virtual directories in Plesk

This article describes how to manage virtual directories in Plesk. You can use a virtual directory to apply specific settings, such as password protection or ASP settings, to an existing directory. You can also use virtual directories as aliases to simplify URLs for your visitors.

Creating a virtual directory

To create a virtual directory in Plesk, follow these steps:

  1. Log in to Plesk.
    If you do not know how to log in to your Plesk account, please see this article.
  2. Locate the domain for which you want to create a virtual directory, and then click Virtual Directories:

    Plesk - Virtual Directories icon

  3. Navigate to the directory in which you want to create a virtual directory.
  4. Click Create Virtual Directory.
  5. Under Virtual Directory, in the Name text box, type the virtual directory name.
  6. Select the Path check box to automatically create a physical directory with the same name as the virtual directory you are creating. Alternatively, clear the check box and specify the path in the text box to use a physical directory that already exists.
  7. Select the Script source access check box to allow users to access source code if read or write permissions are enabled.
  8. Select the Read permission check box to allow users to read file contents and their associated properties.
  9. Select the Write permission check box to allow users to upload files to the virtual directory or to edit existing write-enabled files.
  10. Select the Directory browsing check box to allow users to see an index of the files and subdirectories in the virtual directory.

    Enabling users to browse directories is a potential security risk.
  11. Select the Log visits check box to log visitor information for the virtual directory.
  12. Under Application settings, select the Create application check box to make the directory an IIS application.

    When you enable this option, the directory is logically independent from the rest of the website.
  13. In the Execute permissions list box, select the program execution level you want for the virtual directory:

    • Select None to allow access only to static files.
    • Select Scripts only to allow running scripts only, not executables.
    • Select Scripts and Executables to remove all restrictions so that all file types can be executed.
      This setting does not enable you to run .exe files. For security reasons, .exe files are disabled. For more information, please see this article.
  14. Click OK. Plesk creates the virtual directory.

Editing a virtual directory

To edit an existing virtual directory in Plesk, follow these steps:

  1. Log in to Plesk.
    If you do not know how to log in to your Plesk account, please see this article.
  2. Locate the domain for which you want to edit a virtual directory, and then click Virtual Directories:

    Plesk - Virtual Directories icon

  3. Locate the virtual directory you want to edit, and then click the Plesk - Virtual Directories - Settings icon icon. The Virtual Directory Properties page appears.
  4. You can now edit the settings for the virtual directory.

Removing a virtual directory

To remove a virtual directory in Plesk, follow these steps:

  1. Log in to Plesk.
    If you do not know how to log in to your Plesk account, please see this article.
  2. Locate the domain for which you want to remove a virtual directory, and then click Virtual Directories:

    Plesk - Virtual Directories icon

  3. Select the check box for the virtual directory you want to remove.
  4. Click Remove.
  5. Select the Confirm removal check box, and then click OK. Plesk removes the virtual directory.

More Information

For more information about Plesk, please visit https://www.plesk.com.