【发布时间】:2012-06-07 18:00:26
【问题描述】:
我已经安装了 mod security 2.5.12 我收到错误 403 Forbidden for some php file 所以是误报 我想禁用此特定警告的规则 那么谁能告诉我,我怎么知道mod安全文件中这个错误的规则??
【问题讨论】:
标签: mysql apache mod-security
我已经安装了 mod security 2.5.12 我收到错误 403 Forbidden for some php file 所以是误报 我想禁用此特定警告的规则 那么谁能告诉我,我怎么知道mod安全文件中这个错误的规则??
【问题讨论】:
标签: mysql apache mod-security
在 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
【讨论】: