【问题标题】:Apache mod evasive leads to permission denied of index.phpApache mod evasive 导致 index.php 的权限被拒绝
【发布时间】:2015-05-12 12:53:52
【问题描述】:

出于安全原因,我安装了 apache 模块 security 和 evasive。 不,我有时会收到错误

禁止 您无权访问此服务器上的 /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,引用者:http://test.domain.local/index.php

我知道保护 Apache Webserver 很重要。但是这个错误使合格的工作变得不可能。我怎样才能防止这个错误? 如果我使用 a2dismod evasive 停用模块,则不会出现错误。

谢谢。

【问题讨论】:

    标签: apache security module access-denied


    【解决方案1】:

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

    DOSHashTableSize 3097
    DOSPageCount 5
    DOSSiteCount 50
    DOSPageInterval 2
    DOSSiteInterval 2
    DOSBlockingPeriod 10
    

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

    有一篇文章讲述了一个有同样问题的人,如果您想了解更多信息,请点击这里 http://www.techtutorials.net/articles/introduction_to_apache_mod_evasive.html

    【讨论】:

    • 我的设置不同 - DOSPageCount=2、DOSPageInterval=1、DOSSiteInterval=1。我根据您的建议更新了设置,现在故障似乎消失了。谢谢你的提示!
    猜你喜欢
    • 1970-01-01
    • 2012-08-13
    • 2014-06-29
    • 1970-01-01
    • 2018-06-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多