Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql 修正mod security中的规则_Mysql_Apache_Mod Security - Fatal编程技术网

Mysql 修正mod security中的规则

Mysql 修正mod security中的规则,mysql,apache,mod-security,Mysql,Apache,Mod Security,我已经安装了mod security 2.5.12 我得到了错误403禁止一些php文件 所以这是假阳性 我想禁用此特定警告的规则 那么,有谁能告诉我,我如何知道mod security文件中此错误的规则???在mod_security.log文件中写入了行和规则。例如: Message: Access denied with connection close (phase 2). Matched phrase "msnbot" at REQUEST_HEADERS:User-Agent. [f

我已经安装了mod security 2.5.12 我得到了错误403禁止一些php文件 所以这是假阳性 我想禁用此特定警告的规则
那么,有谁能告诉我,我如何知道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仅与此相关

规则信息显示在您在httpd.conf的SecAuditLog中指定的文件中

SecAuditLog /logs/mod_security.log