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.
Comments
0 comments
Please sign in to leave a comment.