tomputer
Verified User
When ModSecurity is build with Custombuid, a directory for config files is created:
Config files in this directory are loaded in the httpd-modsecurity.conf file:
However, when (re)building ./build modsecurity, all config files are removed:
Custombuild will (re)install the default rules (comodo) but all custom conf files are removed.
I would like to suggest to change the remove line to something like this:
This way we can install our custom configs and rules also in /etc/modsecurity.d
My current workaround is: chattr +i /etc/modsecurity.d/custom.conf
Code:
/etc/modsecurity.d/
Code:
IncludeOptional /etc/modsecurity.d/*.conf
Code:
[line 14739]: rm -f /etc/modsecurity.d/*
I would like to suggest to change the remove line to something like this:
Code:
rm /etc/modsecurity.d/comodo_rules.conf.main
This way we can install our custom configs and rules also in /etc/modsecurity.d
My current workaround is: chattr +i /etc/modsecurity.d/custom.conf