Request body (Content-Length) is larger than the configured limit?

user1446650 picture user1446650 · Dec 15, 2012 · Viewed 28.1k times · Source

I have a file uploading site and am getting this error when trying to upload files larger than 400MB. Does anyone know where I can set this value? I also have ModSecurity Disabled for this account so I don't know why MS is catching this in the first place!

Thank you

Answer

armyofda12mnkeys picture armyofda12mnkeys · Feb 4, 2013

I heard setting a default for apache in httpd.conf for the LimitRequestBody config variable might work.

or maybe not applicable to you but if mod_security is enabled:

/etc/httpd/conf.d/mod_security.conf

Has this: SecRequestBodyLimit 131072 Change to (6MB), or what ever size you want to allow: SecRequestBodyLimit 6000000"*