Custom modsecurity.conf

inomi13

Verified User
Joined
Jan 7, 2022
Messages
162
I have problem with httpd-modsecurity.conf becauase after rebuild CustomBuild httpd-modsecurity.confhas default value. In https://docs.directadmin.com/webservices/apache/modsecurity.html i found information how to custom httpd-modsecurity.conf but this solution doesn't work for me.

I added chattr+a httpd-modsecurity.conf and this solotion works for me but I don't know what happend when CustomBuild will rebuild ?
 
Last edited:
Steps for adjusting this value so that it is not overwritten with the next CustomBuild rebuild of your webserver configuration are defined below. Alternatively, you might try specifying a new setting via the /etc/httpd/conf/extra/httpd-includes.conf file (or the includes file for your chosen webserver) since it is not touched by CustomBuild.
 
Back
Top