0

我已经安装了 mod security 2.5.12 我收到了错误 403 Forbidden for some php file 所以这是误报我想禁用这个特殊警告的规则所以有人能告诉我我怎么知道这个错误的规则国防部安全文件??

4

1 回答 1

0

在 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
于 2012-06-07T10:00:26.130 回答