Created
February 9, 2011 10:42
-
-
Save antonlindstrom/818288 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_security2.c> | |
# Basic configuration options | |
SecRuleEngine On | |
SecRequestBodyAccess On | |
SecResponseBodyAccess On | |
# Handling of file uploads | |
# TODO Choose a folder private to Apache. | |
# SecUploadDir /opt/apache-frontend/tmp/ | |
SecUploadKeepFiles Off | |
# Debug log | |
SecDebugLog /var/log/apache2/modsec_debug.log | |
SecDebugLogLevel 4 | |
# Serial audit log | |
SecAuditEngine RelevantOnly | |
SecAuditLogRelevantStatus ^5 | |
SecAuditLogParts ABDEFGHIJKZ | |
SecAuditLogType Serial | |
SecAuditLog /var/log/apache2/modsec_audit.log | |
# Maximum request body size we will | |
# accept for buffering | |
SecRequestBodyLimit 131072 | |
# Store up to 128 KB in memory | |
SecRequestBodyInMemoryLimit 131072 | |
# Buffer response bodies of up to | |
# 512 KB in length | |
SecResponseBodyLimit 524288 | |
# Rules be here: | |
Include /etc/apache2/mod_security/*.conf | |
Include /etc/apache2/mod_security/base_rules/*.conf | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment