Thursday, April 7, 2011

Apache Modsecurity : Request body (Content-Length) is larger than theconfigured limit

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 :

Related Posts:

0 comments:

Post a Comment