Error 413 'Request entity too large'
From: HICHENS, David <david.hichens_at_baesystems.com>
Date: Thu, 14 Jun 2012 02:13:02 +0000
After much wailing and nashing of teeth, I've finally resolved this error which was preventing me adding large files to SVN. I tried many combinations of 'LimitReqestBody' and 'LimitXMLRequestBody' Apache directives as suggested by many Google search results without success. I belatedly checked the Apache error logs and discovered that the culprit was actually the 'mod_security' module. It was reporting 'ModSecurity: Request body (Content-Length) is larger than the configured limit (131072)'.
Upon examining the 'mod_security.conf' configuration file, I discovered that the value 'SecRequestBodyInMemoryLimit' was indeed set to the default 131072 bytes (128 KB). I commented out this line and the problem disappeared! I suspect it will now allow file sizes up to the 1GB hard limit.
There is another parameter 'SecResponseBodyLimit' which may also need adjusting. This is set to 524 288 bytes (512 KB).
"Warning:
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.