- Plesk for Linux
Website is not accessible with the
403 Forbiddenerror in a browser.
The website may work incorrectly, e.g. some images may not load.
/var/www/vhosts/system/example.com/logs/error_logone of the following errors appear:
CONFIG_TEXT: AH00037: Symbolic link not allowed or link target not accessible: /var/www/vhosts/example.com/httpdocs/index.php
CONFIG_TEXT: AH00670: Options FollowSymLinks and SymLinksIfOwnerMatch are both off, so the RewriteRule directive is also forbidden due to its similar ability to circumvent directory restrictions : /var/www/vhosts/example.com/httpdocs/, referer: https://servername.com/
The domain may have been restored from a backup recently.
Symbolic links are not allowed in the Apache configuration.
Go to Domains > example.com > Hosting & DNS tab > Apache & nginx.
Disable the option Restrict the ability to follow symbolic links and apply changes.
Go to Domains > example.com > File Manager and add the following directive to the
.htaccessfile of the website:
CONFIG_TEXT: Options +FollowSymlinks
Make sure that the symbolic link has correct ownership and permissions or add the following directive into
.htaccessfile of the website to disable symbolic link owner check:
CONFIG_TEXT: Options -SymLinksIfOwnerMatch
Connect to the server via SSH.
Execute the command below to disable the Restrict the ability to follow symbolic links option for all domains:
# for DOMAIN_NAME in $(plesk bin domain --list); do plesk bin subscription --update-web-server-settings $DOMAIN_NAME -apache-restrict-follow-sym-links false ; done