【发布时间】:2018-10-18 01:26:27
【问题描述】:
[root@vmn-ssd-42 ~]# httpd -t
/etc/httpd/conf.d/mod_security.conf 第 17 行的语法错误:
ModSecurity:规则中没有操作 ID
SecRuleEngine On
SecRequestBodyAccess On
SecRule REQUEST_HEADERS:Content-Type "text/xml" \
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
SecRule REQUEST_HEADERS:Content-Type "multipart/form-data" \
"chain,phase:2,t:none,t:lowercase,deny,msg:'ModSecurity DoS attempt - NULL part header name'"
【问题讨论】:
-
请建议解决这个问题。
-
第17行是哪一个?
标签: apache mod-security