Plesk

Access to the path is denied error is shown when access .aspx file on Plesk for Windows

Symptoms

Attempt to access
http://example.com/testfolder/test.aspx
 produces the error:

Access to the path %plesk_vhosts%example.comhttpdocstestfolder is denied

Cause

Required system user and/or permissions are not configured properly for the directory
%plesk_vhosts%example.comhttpdocstestfolder
in Plesk.

Resolution

  1. Connect to the server via RDP.
  2. Repair permissions for the virtual host directory for example.com domain according to this article.

If previous steps does not help, set required permissions for subfolder manually:

  1. Log in to Plesk.
  2. Go to Domains > example.com > Virtual Directory > testfolder > Directory Access Permissions and verify that all the necessary users have enough rights. As a default it looks like on the picture below:

     

     

    Note: It is possible to compare permissions with the one that can be accessed without any issues or with one created anew

  3. If application pool group is missing and it is not possible to add it via Plesk, add it directly on the file system using Windows functionality. The name of the pool group should be IWPG_<sys_user>, where <sys_user> should be replaced with actual system user of the subscription.