403 error on various webpages, error log: "client denied by server configuration:"

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Hello,

just today i got 403 error several times and after a while same page works again and in logs are lines with "client denied by server configuration:"

Please where can i see the cause?

I checked mod security tools page, but i cant find anything related
 

danrussell

Well-Known Member
Nov 5, 2014
61
3
58
cPanel Access Level
Root Administrator
Hello :),

If you are getting 403 access denied error, then it might be due to ModSecurity. You should check the logs for the particular domain

cat /usr/local/apache/logs/error_log | grep "domainname.com"

If its ModSecurity, then check the reason for the error.

Thanks.
 

postcd

Well-Known Member
Oct 22, 2010
717
19
68
i think there is no more info in that log on what caused this access denial. only message "client denied by server configuration:", script path, date obviously
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Do you have any .htaccess rules in the referenced directory that would prevent access to specific IP addresses?

Thank you.