I seem to have two configs, if I rename or comment out either of them and run asl -s -f
It replaces both of them.
I have one in
/usr/local/apache/conf.d/00_mod_security.conf
Other is in
/usr/local/apache/conf/modsec2.conf
Both have the same contents below.
Code:
# ASL mod_security Template: /var/asl/data/templates/template-01_mod_security.conf
# Special custom version for cpanel environments
LoadModule security2_module modules/mod_security2.so
<IfModule mod_security2.c>
# Basic configuration goes in here
Include modsecurity.d/tortix_waf.conf
# Rule management is handled by ASL
Include modsecurity.d/00*exclude.conf
Include modsecurity.d/*asl*.conf
Include modsecurity.d/99*exclude.conf
</IfModule>
I know this is the issue. cause if I comment one out and run httpd -M I don't get an [warn] that security2_module is already loaded. Where I do if both are normal.
Now that another problem is fixed my apache process size is 154MB This seems too big? or is it?
Just not sure what the solution would be if asl is re-creating both this files after running asl -s -f
Shawn