Forbidden error occurs once the 'click to view the web user's homepage' button is clicked.

Created:

2017-07-08 10:25:24 UTC

Modified:

2017-08-16 15:58:02 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Forbidden error occurs once the 'click to view the web user's homepage' button is clicked.

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

  • Attempt to view web user's webpage returns the following error:
    Forbidden
    
    You do not have permission to access this document.
    Web Server at example.com
  • The web user is created under Plesk > Domains > example.com > Web Users
  • Web user's directory is empty:
# ls -l /var/www/vhosts/example.com/web_users/plesktest/
total 0

The same could be found on the screenshot:

Cause

Webserver (nginx/apache) is trying to access the web user's directory. As there is no index file inside, webserver returns Forbidden error.

Resolution

Create index file inside the directory, or upload a user's webpage through FTP as it is mentioned in our documentation .

OR

Add the following directives under Plesk > Websites and Domains > Apache & nginx Settings > Additional directives for HTTP :

 <Directory /var/www/vhosts/%website name%/web_users/%web user name%/>
Options +Indexes
</Directory>

In order to allow directory listing (view all files in the directory) for user's folder.

Have more questions? Submit a request
Please sign in to leave a comment.