ModSecurity save modsec2.conf
Rebuilding and restarting Apache:
Initial configuration generation failed with the following message:
Configuration problem detected on line 31 of file /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf: ModSecurity: Found another rule with the same id
--- /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf ---
25SecAction \
26 "id:210000,\
27 phase:1,\
28 pass,\
29 setvar:tx.points_limit4=5, setvar:tx.points_limit3=4, setvar:tx.points_limit2=3, setvar:tx.points_limit1=2,\
30 nolog,\
31 ===> t:none"
<===
32
33
34SecAction
35 "id:210010,
36 phase:1,
37 pass,
— /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf —
Rebuilding configuration without any local modifications.
Failed to generate a syntactically correct Apache configuration.
Bad configuration file located at /usr/local/apache/conf/httpd.conf.work.qV0P_rYXcQ7iGM6Y
Error:
Configuration problem detected on line 31 of file /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf: ModSecurity: Found another rule with the same id
--- /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf ---
25SecAction \
26 "id:210000,\
27 phase:1,\
28 pass,\
29 setvar:tx.points_limit4=5, setvar:tx.points_limit3=4, setvar:tx.points_limit2=3, setvar:tx.points_limit1=2,\
30 nolog,\
31 ===> t:none"
<===
32
33
34SecAction
35 "id:210010,
36 phase:1,
37 pass,
— /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf —
AH00526: Syntax error on line 31 of /usr/local/apache/conf/modsec_vendor_configs/comodo-apache/cwaf_01.conf:
ModSecurity: Found another rule with the same id