Created
August 7, 2014 18:18
-
-
Save ceesco53/6cfc5991b0813af07eb5 to your computer and use it in GitHub Desktop.
modsec2.conf cPanel comodo
This file contains 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
LoadFile /opt/xml2/lib/libxml2.so | |
# LoadFile /opt/lua/lib/liblua.so | |
LoadModule security2_module modules/mod_security2.so | |
<IfModule mod_security2.c> | |
SecRuleEngine On | |
SecDataDir /var/asl/data/msa | |
SecTmpDir /var/asl/tmp | |
SecUploadDir /var/asl/data/suspicious | |
SecUploadKeepFiles Off | |
SecAuditEngine Off | |
SecRequestBodyAccess On | |
SecAuditEngine RelevantOnly | |
SecPcreMatchLimitRecursion 250000 | |
SecDebugLog logs/modsec_debug.log | |
SecPcreMatchLimit 250000 | |
SecAuditLog logs/modsec_audit.log | |
SecDebugLogLevel 2 | |
SecAuditLogDirMode 0777 | |
SecAuditLogFileMode 0550 | |
SecAuditLogStorageDir /var/asl/data/audit | |
SecAuditLogType Concurrent | |
SecResponseBodyAccess On | |
SecResponseBodyLimit 2621440 | |
SecResponseBodyLimitAction ProcessPartial | |
SecResponseBodyMimeType (null) text/html text/plain text/xml | |
SecServerSignature Apache | |
Include "/usr/local/apache/conf/modsec2.user.conf" | |
Include "/var/cpanel/cwaf/etc/cwaf.conf" | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment