Random Access forbidden while reloading websites.

Discussion in 'General' started by damir, Dec 8, 2010.

  1. damir

    damir New Member

    Hi all,

    I have a strange issue with 3 independent sites i host. Every time i reload a site couple of times a get "Access forbidden" message.

    On one site images sometime loads, and sometimes they don't.

    Im running ISPConfig 3.0.2 on Debian Lenny, all the sites are php fast-cgi + suexec.

    The message in error log of apache is "client denied by server configuration"

    Other sites works perfectly. Anyone with similar experience ?

    Kind regards
     
  2. damir

    damir New Member

    I have found that apache2 module mod_dosevasive is causing this strange behavior.

    Adding the following to vhost file resolves my problems:

    Code:
    <IfModule mod_dosevasive.c>
    DOSHashTableSize 3097
    DOSPageCount 5
    DOSSiteCount 100
    DOSPageInterval 1
    DOSSiteInterval 1
    DOSBlockingPeriod 2
    </IfModule> 
    This happens with: Gallery2, Cms Made Simple (with Cataloger module) and OsCommerce.

    If someone experiences same issues, this is the solution :)
     
  3. lewis_saint

    lewis_saint New Member

    Thank you for this. I just had this exact problem! It was driving me crazy!
     

Share This Page