Add <IfModule mod_security2.c>

1 post Page 1 of 1
tamainut
Junior Member
Posts: 11
Joined: 09 Jan 2013, 18:09


Hi.

Actually CMS write a file modsec.conf on userdata/*/*/<user>*/ for Cpanel Servers.

Example
Code: Select all
<LocationMatch .*>
    SecRuleRemoveById 340149
   SecRuleRemoveById 340029
</LocationMatch>
If there some problem woth mod_security, and Sys admin need remove mod_security form his Apache conf, appache not start because Apache read this files and if mod_security it's deactivate SecRuleRemoveById or other reservated words of mod Security, break start.

It's forced to Sys admin to remove all modsec.conf from apache estructure.

I htink its better,
Code: Select all
<IfModule mod_security2.c>
  <LocationMatch .*>
    SecRuleRemoveById 340149
   SecRuleRemoveById 340029
  </LocationMatch>
</IfModule mod_security2.c>
1 post Page 1 of 1