modsec rule change?
I am getting these errors trying to upload large files 600+MB. small ones are fine. exactly what do I do to fix this? I'm lost.
[Fri Apr 10 17:13:08.010541 2026] [security2:error] [pid 3063894:tid 3063894] [client 173.238.103.175:53258] ModSecurity: Request body (Content-Length) is larger than the configured limit (134217728). [hostname "admin.test.io"] [uri "/includes/post.php"] [unique_id "adln5M2tnc8kvY0Q28H3CwAAABE"], referer: https://admin.test.io/klav_jsoncheck.html
[Fri Apr 10 17:13:08.010921 2026] [security2:error] [pid 3063894:tid 3063894] [client 173.238.103.175:53258] ModSecurity: Request body (Content-Length) is larger than the configured limit (134217728). [hostname "admin.test.io"] [uri "/includes/post.php"] [unique_id "adln5M2tnc8kvY0Q28H3CwAAABE"], referer: https://admin.test.io/klav_jsoncheck.html
[Fri Apr 10 17:13:18.319863 2026] [security2:error] [pid 3063894:tid 3063894] [client 173.238.103.175:53258] ModSecurity: Multipart parsing error: Multipart: Final boundary missing. [hostname "admin.test.io"] [uri "/includes/post.php"] [unique_id "adln5M2tnc8kvY0Q28H3CwAAABE"], referer: https://admin.test.io/klav_jsoncheck.html
-
Hey there! If this is the correct value I'm thinking of, you'll want to edit
/etc/apache2/conf.d/modsec/modsec2.user.confand adjust theSecRequestBodyLimit
value to a higher number, and then restart Apache on the server so it is active. Can you try that and see if that helps the situation?
0 -
thank you, I added it.
0
Please sign in to leave a comment.
Comments
2 comments