Apache-Error: [file “apache2_util.c”] [line 271] [

2019-07-25 20:29发布

问题:

I just integrated Apache Httpd 2.4.25 with mod_security 2.9.1. And now i got this error messages:

/*
--ba380000-H--
Message: Error reading request body: Partial results are valid but processing is incomplete
Apache-Error: [file "apache2_util.c"] [line 271] [level 3] [client %s] ModSecurity: %s%s [uri "%s"]%s
Apache-Handler: jakarta-servlet
Stopwatch: 1489655290393010 8470749 (- - -)
Stopwatch2: 1489655290393010 8470749; combined=0, p1=0, p2=0, p3=0, p4=0, p5=0, sr=0, sw=0, l=0, gc=0
Response-Body-Transformed: Dechunked
Producer: ModSecurity for Apache/2.9.1 (http://www.modsecurity.org/).
Server: Apache/2.4.25 (Win64) OpenSSL/1.0.2k mod_jk/1.2.40 mod_watch/4.3P mod_security2/2.9.1
Engine-Mode: "ENABLED"
--ba380000-Z--
*/

I don't know what's problem. please help me. Thanks.

回答1:

Sounds like you are sending large request body amounts and are hitting this bug: https://github.com/SpiderLabs/ModSecurity/issues/918

Are you sending very large requests? Can you increase SecRequestBodyLimit and SecRequestBodyNoFilesLimit to sizes that will incorporate your largest request size? Though to be honest the defaults for those are quite large (128Mb) so unless you've explicitly set those values to lower or have truely tremendous request body sizes I'm not sure how you'd hit this limit...