- Plesk for Linux
The website shows the error similar to below one in browser screen:
CONFIG_TEXT: 403 Forbidden
The log file
/var/www/vhosts/system/example.com/logs/error_logcontains errors like the following:
CONFIG_TEXT: 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 directives and add "#" sign before directives similar to below ones:
CONFIG_TEXT: Deny from all
CONFIG_TEXT: <Location /example>
Require all denied
Check If there
.htaccessfiles on the server:
NOTE: Replace example.com with the actual domain name
# find /var/www/vhosts/example.com/httpdocs/ -name ".htaccess"
Review the content of all
.htaccessfiles and disable settings that prevents access to the site by adding the "#" sign before the directives containing words "Deny" in text editor.