httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Mol <marioh...@gmail.com>
Subject Re: [users@httpd] client denied by server configuration, but sometimes works and sometimes not!
Date Wed, 26 May 2010 13:47:53 GMT
Guys,

i think that i've solved the problem.

I created a file /etc/apache2/mods-enabled/mod-evasive.conf  containing:



<IfModule mod_evasive20.c>
        DOSHashTableSize 3097
        DOSPageCount 500
        DOSSiteCount 300
        DOSPageInterval 2
        DOSSiteInterval 2
        DOSBlockingPeriod 50
        DOSSystemCommand "%s > /home/mario/teste"
        DOSEmailNotify msilva@mydomain.com
        DOSLogDir "/var/lock/mod_evasive"
</IfModule>


Wow, i was getting crazy with that error!

Thanks all for your attention.

Cheers,




On 25 May 2010 10:27, Mario Mol <mariohmol@gmail.com> wrote:

> All right, so what can i do to check it?
>
> I found out that this file doesnt exists and there are a plenty of files in
> website that reffer to a file that doest no exits.
>
> So on error.log shows a lot of file not found but sometimes shows a lot of
> client denied by server
> configuration, and at this time can happen Forbidden on users browser.
>
> Any ideias?
>
>
> On 25 May 2010 09:26, Eric Covener <covener@gmail.com> wrote:
>
>> On Tue, May 25, 2010 at 4:33 AM, Tom Evans <tevans.uk@googlemail.com>
>> wrote:
>> > On Tue, May 25, 2010 at 5:54 AM, Mario Mol <mariohmol@gmail.com> wrote:
>> >> Well,
>> >>
>> >> i`ve done apt-get update , so its all fresh new.
>> >>
>> >> Could this be related to some of security mods? For example,
>> mod-security,
>> >> qos, psad?
>> >>
>> >> Cheer,s
>> >>
>> >
>> > In order to serve a file, apache must be able to access it. Since your
>> > configuration looks correct, try this as root:
>> >
>> > su -m www -c 'ls -l
>> > /var/www/sites/dtc/
>> gemt.com.br/subdomains/www/html/imagens/layout/fundo_topo.gif'
>> >
>> > Change www for the user you run apache as.
>> >
>> > If the output from this says "Permission denied", then you either the
>> > file or a directory in the path to the file is not accessible to the
>>
>> Errors of this type are never reported as "client denied by server
>> configuration" -- that refers to Apaches configuration itself, not
>> filesystem permissions  / SELinux.
>>
>> --
>> Eric Covener
>> covener@gmail.com
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>

Mime
View raw message