【问题标题】:Fix the rules in mod security修复 mod 安全中的规则
【发布时间】:2012-06-07 18:00:26
【问题描述】:

我已经安装了 mod security 2.5.12 我收到错误 403 Forbidden for some php file 所以是误报 我想禁用此特定警告的规则 那么谁能告诉我,我怎么知道mod安全文件中这个错误的规则??

【问题讨论】:

    标签: mysql apache mod-security


    【解决方案1】:

    在 mod_security.log 文件中写入了行和规则。例如:

    Message: Access denied with connection close (phase 2). Matched phrase "msnbot" at REQUEST_HEADERS:User-Agent. [file "/home/oscar/conf/mod_sec_default_action.conf"] [line "28"] [id "60008"]
    

    您应该添加或修改SecAuditEngine参数以开始登录httpd.conf,其值为

    SecAuditEngine 开启

    ,或

    SecAuditEngine RelevantOnly

    规则信息出现在您在 httpd.conf 的 SecAuditLog 中指定的文件中。

    SecAuditLog /logs/mod_security.log
    

    【讨论】:

      猜你喜欢
      • 2021-05-03
      • 2019-08-15
      • 2020-12-02
      • 2020-07-24
      • 2017-08-07
      • 1970-01-01
      • 2020-06-19
      • 2018-11-09
      相关资源
      最近更新 更多