frequent 403 forbidden errors

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Mar 4, 2014.

  1. pawan

    pawan Member

    I am getting frequent 403 forbidden errors for almost all the hosted websites on the server.

    If I refresh the page second time just after a moment, the page displays all right.
    apache error logs have many entries like : client denied by server configuration.

    Need to sort out this problem, which has increased since recently.




    OS - Ubuntu - 12.04 64bit, Server - Apache 2.2, Php 5.3, ispconfig - 3.0.5.3
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Do you use the apache modules mod_evasive or mod_security?
     
  3. pawan

    pawan Member

    Thanks Till,
    Yes I have mod_evasive enabled.
    The contents of mod-evasive.load file:

    Code:
    LoadModule evasive20_module /usr/lib/apache2/modules/mod_evasive20.so
    <IfModule  mod_evasive20.c>
    DOSHashTableSize 3097
    DOSPageCount 2
    DOSSiteCount 50
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 10
    DOSLogDir “/var/log/apache2/evasive”
    DOSEmailNotify [email protected]
     </IfModule>
    
    If I remove that module, the 403 forbidden error is gone.

    So definitely mod_evasive is the root cause. Can I increase the threshold limit instead of completely removing it.
    Thanks.
     
    Last edited: Mar 4, 2014
  4. pawan

    pawan Member

    Ok I have changed the setting like:

    Code:
    DOSPageCount 50
    DOSSiteCount 200
    
    I am not getting any error now. Thanks.
     

Share This Page