How to have custom modsecurity conf stick?

sahostking

Verified User
Joined
Jan 29, 2021
Messages
110
Location
South Africa
I had problem with uploading files on Directadmin server with mod_security enabled. I recieved errors like these:

ModSecurity: Request body (Content-Length) is larger than the configured limit (13107200)

Default in /etc/httpd/conf/extra/httpd-modsecurity.conf

SecRequestBodyLimit 13107200
SecRequestBodyNoFilesLimit 131072

If I customize this file with the following:

SecRequestBodyLimit 67108864
SecRequestBodyNoFilesLimit 1048576

Will it stick forever? or will some update or conf change cause this to "reset" back to defaults?
And if so how to make it stick.

Thanks
 
Check this out:
 
Back
Top