Skip to content

Instantly share code, notes, and snippets.

@ceesco53
Created August 7, 2014 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ceesco53/6cfc5991b0813af07eb5 to your computer and use it in GitHub Desktop.
Save ceesco53/6cfc5991b0813af07eb5 to your computer and use it in GitHub Desktop.
modsec2.conf cPanel comodo
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