ModSecurity: Request body is larger than the configured limit
filed in Tutorials - cPanel on Mar.10, 2008
Some users may experience problems when uploading large files via a webpage. The resultant errors often look like this:
Request body is larger than the configured limit (134217728).
This is because the request body’s default maximum size is set lower than the size that was submitted. A detailed explanation of how and why this directive is used can be found here: http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestbody
To work around the issue create a .htaccess file in the same directory as the page causing the issue. Insert one of the following lines:
LimitRequestBody 0 ## unlimited up to 2GB
LimitRequestBody 2097152 ## 2 MB, decent default for many cases.
and save this file. If you increased the size correctly the page should now be working.
Tags: Tutorials - cPanel
Leave a Reply