The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is this an apache issue?

Discussion in 'EasyApache' started by t9clkclnr, Mar 6, 2007.

  1. t9clkclnr

    t9clkclnr Well-Known Member

    Joined:
    Jun 11, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Southern California
    whilst on a website that I host, if I hit the refresh button repeatedly I eventually get a 404 page error. I wait a few moments and refresh again and it appears again.

    Anyone experience this, or know how to prevent it? I have a couple clients complaining about this.
     
  2. Fernis

    Fernis Well-Known Member

    Joined:
    Oct 28, 2006
    Messages:
    192
    Likes Received:
    1
    Trophy Points:
    18
    The problem at your end seems to be due to mod_evasive which is installed on your server.

    Mod_evasive Detects IP addresses and URIs, and denies any single IP address from any of the following:
    - Requesting the same page more than a few times per second
    - Making more than 50 concurrent requests on the same child per second
    - Making any requests while temporarily blacklisted (on a blocking list)


    You can disable this by opening your httpd.conf file and commenting out AddModule mod_evasive.c by adding a # sign in front of it. This file should be located in /usr/apache/conf/httpd.conf
     
    #2 Fernis, Mar 6, 2007
    Last edited: Mar 6, 2007
  3. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    I have uncommented the mod_evasive line, and still get a 404 error on a site I was busy working on, uploading images to the website.

    Any other suggestions? Neither cPanel's error log, or the apache error log can give me any indication as to why I get this error
     
  4. t9clkclnr

    t9clkclnr Well-Known Member

    Joined:
    Jun 11, 2004
    Messages:
    254
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Southern California
    Make sure you locate all instances of mod_evasive.

    I know in my apache config, there are 2 instances that need to be either commented or uncommented, depending on which way you are going.. ;)
     
Loading...

Share This Page