Apache mod evasive导致index.php的权限被拒绝

Per*_*ino 5 apache security module access-denied

出于安全考虑,我安装了apache模块安全性和规避性.不,我有时会得到错误

禁止您无权访问此服务器上的/index.php.

apache的日志文件告诉我:[Tue May 12 14:42:32.825039 2015] [evasive20:error] [pid 27443] [client 192.168.32.22:51305]客户端被服务器配置拒绝:/ var/www/test/index. php,referer:http://test.domain.local/index.php

我知道保护Apache Webserver很重要.但是这个错误使合格的工作变得不可能.如何防止出现此错误?如果我用a2dismod规避了模块,那么错误就不会出现.

谢谢.

Ale*_*lex 8

您是否设置了URL请求的限制率?尝试将此添加到您的apache2.conf中

DOSHashTableSize 3097
DOSPageCount 5
DOSSiteCount 50
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 10
Run Code Online (Sandbox Code Playgroud)

DOSPageCount是请求URL的数量限制.DOSPageInterval是请求URL的时间限制.例如,您可以在2秒内请求5次URL.

有一篇文章有​​一个人有同样的问题,如果你想要更多的信息,这里是 http://www.techtutorials.net/articles/introduction_to_apache_mod_evasive.html