Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

Discussion in 'General Discussion' started by postcd, Nov 14, 2014.

  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. danrussell

    danrussell Well-Known Member

    Joined:
    Nov 5, 2014
    Messages:
    61
    Likes Received:
    3
    Trophy Points:
    8
    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.
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    285
    Likes Received:
    20
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    More details on modsecurity blocks should be found in:

    /usr/local/apache/logs/modsec_audit.log
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

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

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice