Tag: modsecurity

mod_security installation get erro cannot find -lexpat

I am trying to ‘make’ mod_security on server with DA but keep getting this error: /usr/bin/ld: cannot find -lexpat collect2: ld returned 1 exit status make[2]: *** [mod_security2.la] Error 1 make[2]: Leaving directory `/root/modsecurity-apache_2.6.1/apache2′ make[1]: *** [all] Error 2 make[1]: Leaving directory `/root/modsecurity-apache_2.6.1/apache2′ make: *** [all-recursive] Error 1 solves above […]

ModSecurity: Request body no files data length is larger than the configured limit

Error Log: ModSecurity: Request body (Content-Length) is larger than the configured limit (131072). [hostname “x.x.x.x”][uri “sua-bao-hanh.html”] [unique_id “UMFwcQ4AE4UAAAafNNMAAAAC”] Resolved solutions: Edit this command to /etc/modsecurity2/modsec2.conf # Basic configuration options SecRuleEngine On SecRequestBodyAccess On SecResponseBodyAccess On           ……………          ……………         […]