The website shows an error similar to the following one:
The log file
/var/www/vhosts/system/example.com/logs/error_logcontains errors like the following:
AH01797: client denied by server configuration: /var/www/vhosts/example.com/index.php
- IP is being banned by Fail2Ban after browsing WordPress Admin dashboard.
Custom Apache configuration does not allow access to the website.
- Login into Plesk;
Go to Domains > example.com > Apache & nginx Settings > Additional HTTP/HTTPS directives and add "#" sign before directives similar to the ones below:
Deny from all
Require all denied
Connect to the server via SSH and check if there are any
.htaccessfiles in the domain's document root directory:
NOTE: Replace example.com with the actual domain's name
# find /var/www/vhosts/example.com/httpdocs/ -name ".htaccess"
Review the content of all
.htaccessfiles with a text editor and disable restrictive settings that prevent access to the site by adding the "#" sign before "Deny" directives.