Applicable to:
- Plesk Onyx for Linux
- Plesk for Linux
Symptoms
- The site fails to open with 403 Forbidden error via HTTPS (or 404 Not Found);
- There are the following records in
/var/www/vhosts/example.com/logs/error_log
file:CONFIG_TEXT: (13)Permission denied: /var/www/vhosts/example.com/httpsdocs/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: https://www.example.com
OR
CONFIG_TEXT: AH01276: Cannot serve directory /var/www/vhosts/example.com/httpsdocs/: No matching DirectoryIndex (index.php) found, and server-generated directory index forbidden by Options directive
OR
-
The domain example.com displays different data when accessing using HTTP and HTTPS;
-
The domain shows the default Apache welcome page or website shows Plesk default page;
-
Path of Document Root for a domain changes on each reconfiguration from /httpdocs to /httpsdocs: the "root" statement in the file
/var/www/vhosts/system/example.com/conf/nginx.conf
points to /httpsdocs instead of /httpdocs -
Document Root is set to /httpdocs in Plesk > Domains > example.com > Hosting Settings > Document Root;
-
Plesk was upgraded from the older version where the Document root was changed from split location (http in /httpdocs and https in /httpsdocs) using Separate SSL/TLS and non-SSL/TLS content option.
Cause
Enabled compatibility mode for the legacy option "Separate SSL/TLS and non-SSL/TLS content"
Resolution
- Log into Plesk.
- Disable the mode under Plesk > Domains > example.com > Hosting Settings > uncheck Run the website in compatibility mode for the legacy option "Separate SSL/TLS and non-SSL/TLS content
Comments
2 comments
einige Male ist dies hilfreich:
mail: /var/www/vhosts/mydomain.com/httpdocs# zu finden. -Typs d -exec chmod 755 {} \;
mail: / var / www / vhosts / mydomain.com/httpdocs# zu finden. -type f -exec chmod 644 {} \;
Hello @Jan,
Thank you for sharing your experience.
Error 403 indeed may have a variety of causes, the commands you used set the permissions on files this is a solution in case permissions are incorrect.
Please sign in to leave a comment.