Michael Fleming 522c01c
<IfModule mod_security2.c>
7f15e7f
    # Default recommended configuration
ea35d25
    SecRuleEngine On
ea35d25
    SecRequestBodyAccess On
ea35d25
    SecRule REQUEST_HEADERS:Content-Type "text/xml" \
ea35d25
         "id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
ea35d25
    SecRequestBodyLimit 13107200
ea35d25
    SecRequestBodyNoFilesLimit 131072
ea35d25
    SecRequestBodyInMemoryLimit 131072
ea35d25
    SecRequestBodyLimitAction Reject
ea35d25
    SecRule REQBODY_ERROR "!@eq 0" \
ea35d25
    "id:'200001', phase:2,t:none,log,deny,status:400,msg:'Failed to parse request body.',logdata:'%{reqbody_error_msg}',severity:2"
ea35d25
    SecRule MULTIPART_STRICT_ERROR "!@eq 0" \
0caf91f
    "id:'200002',phase:2,t:none,log,deny,status:400,msg:'Multipart request body \
ea35d25
    failed strict validation: \
ea35d25
    PE %{REQBODY_PROCESSOR_ERROR}, \
ea35d25
    BQ %{MULTIPART_BOUNDARY_QUOTED}, \
ea35d25
    BW %{MULTIPART_BOUNDARY_WHITESPACE}, \
ea35d25
    DB %{MULTIPART_DATA_BEFORE}, \
ea35d25
    DA %{MULTIPART_DATA_AFTER}, \
ea35d25
    HF %{MULTIPART_HEADER_FOLDING}, \
ea35d25
    LF %{MULTIPART_LF_LINE}, \
ea35d25
    SM %{MULTIPART_MISSING_SEMICOLON}, \
ea35d25
    IQ %{MULTIPART_INVALID_QUOTING}, \
ea35d25
    IP %{MULTIPART_INVALID_PART}, \
ea35d25
    IH %{MULTIPART_INVALID_HEADER_FOLDING}, \
ea35d25
    FL %{MULTIPART_FILE_LIMIT_EXCEEDED}'"
ea35d25
ea35d25
    SecRule MULTIPART_UNMATCHED_BOUNDARY "!@eq 0" \
ea35d25
    "id:'200003',phase:2,t:none,log,deny,status:44,msg:'Multipart parser detected a possible unmatched boundary.'"
ea35d25
ea35d25
    SecPcreMatchLimit 1000
ea35d25
    SecPcreMatchLimitRecursion 1000
ea35d25
ea35d25
    SecRule TX:/^MSC_/ "!@streq 0" \
ea35d25
            "id:'200004',phase:2,t:none,deny,msg:'ModSecurity internal error flagged: %{MATCHED_VAR_NAME}'"
ea35d25
ea35d25
    SecResponseBodyAccess Off
ea35d25
    SecDebugLog /var/log/httpd/modsec_debug.log
ea35d25
    SecDebugLogLevel 0
ea35d25
    SecAuditEngine RelevantOnly
ea35d25
    SecAuditLogRelevantStatus "^(?:5|4(?!04))"
ea35d25
    SecAuditLogParts ABIJDEFHZ
ea35d25
    SecAuditLogType Serial
ea35d25
    SecAuditLog /var/log/httpd/modsec_audit.log
ea35d25
    SecArgumentSeparator &
ea35d25
    SecCookieFormat 0
b4feb28
    SecTmpDir /var/lib/mod_security
b4feb28
    SecDataDir /var/lib/mod_security
f262c30
f262c30
    # ModSecurity Core Rules Set and Local configuration
f262c30
	Include modsecurity.d/*.conf
f262c30
	Include modsecurity.d/activated_rules/*.conf
f262c30
	Include modsecurity.d/local_rules/*.conf
f262c30
    
Michael Fleming e4e1b11
</IfModule>