Modsecurity : Request body (Content-Length) is larger than the configured limit
Posted: April 7th, 2011 | Author: adq890 | Filed under: apache, config | Tags: Apache, php | No Comments »Error Log:
- ModSecurity: Request body (Content-Length) is larger than the configured limit (131072). [hostname "x.x.x.x"] [uri "/templates_import.php"] [unique_id "QzoPUttdJF4AABSQMQsAAAAB"]
Resolved solutions:
Edit this command to /etc/http/conf.d/modsecurity.conf-minimal
# Basic configuration options
SecRuleEngine On
SecRequestBodyAccess On
SecResponseBodyAccess On
……………
……………
…………..
# Maximum request body size we will accept for buffering
SecRequestBodyLimit 1124288
# Store up to 1MB in memory
SecRequestBodyInMemoryLimit 1124288
# Buffer response bodies of up to
SecResponseBodyLimit 1124288
Refer :
- http://mewbies.com/
- http://owl.anytimecomm.com/faq/how-to/1-howto/4-configure-owl-for-large-files
- http://php.bigresource.com/Track/php-FXIomDYz/
- http://www.phpbuilder.com/board/archive/index.php/t-10287659.html