configurationmod-security2后Apache服务器发生故障

我从https://www.digitalocean.com/community/tutorials/how-to-set-up-mod_security-with-apache-on-debian-ubuntuconfiguration了mod-security。 之后,重新启动Apache服务,但我发现错误:

The apache2 configtest failed. Output of config test was: AH00526: Syntax error on line 97 of /usr/share/modsecurity-crs/modsecurity_crs_10_setup.conf: ModSecurity: Found another rule with the same id Action 'configtest' failed. The Apache error log may have more information. 

错误日志:(但我认为这不是从模式安全的错误logging)

 [Sun Jan 11 01:40:20.278652 2015] [mpm_prefork:notice] [pid 5359] AH00169: caught SIGTERM, shutting down 

我也使用模式回避。

错误在这里:编辑你的httpd.conf / apache2.conf

 <IfModule security2_module> Include crs/modsecurity_crs_10_setup.conf Include crs/activated_rules/*.conf </IfModule> 

将其更改为

 <IfModule security2_module> # Include crs/modsecurity_crs_10_setup.conf Include crs/activated_rules/*.conf </IfModule> 

随着摊位行激活,Apache包括2次相同的configuration,然后你重新启动时获得相同的ID错误。