Compare commits
2 commits
stable
...
projet6062
Author | SHA1 | Date | |
---|---|---|---|
Patrick Marchand | 0e98f24f42 | ||
49aff3892c |
|
@ -18,7 +18,7 @@ SecUploadKeepFiles Off
|
||||||
# default action
|
# default action
|
||||||
SecDefaultAction "log,auditlog,deny,status:406,phase:2"
|
SecDefaultAction "log,auditlog,deny,status:406,phase:2"
|
||||||
|
|
||||||
SecAuditEngine RelevantOnly
|
SecAuditEngine Off
|
||||||
#SecAuditLogRelevantStatus "^[45]"
|
#SecAuditLogRelevantStatus "^[45]"
|
||||||
# use only one log file
|
# use only one log file
|
||||||
SecAuditLogType Serial
|
SecAuditLogType Serial
|
||||||
|
@ -39,10 +39,12 @@ SecTmpDir /tmp
|
||||||
# RULES
|
# RULES
|
||||||
#########
|
#########
|
||||||
|
|
||||||
# File name
|
Include /usr/share/modsecurity-crs/owasp-crs.load
|
||||||
SecRule REQUEST_FILENAME "modsecuritytest1" "id:1"
|
|
||||||
# Complete URI
|
|
||||||
SecRule REQUEST_URI "modsecuritytest2" "id:2"
|
# Removed because it does not play well with apache-itk
|
||||||
SecRule REQUEST_FILENAME "(?:n(?:map|et|c)|w(?:guest|sh)|cmd(?:32)?|telnet|rcmd|ftp)\.exe" "id:3"
|
# Can be removed when modsecurity 2.9.3 hits debian
|
||||||
|
# See https://github.com/SpiderLabs/ModSecurity/issues/712
|
||||||
|
SecRuleRemoveById "910000-910999"
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
Loading…
Reference in a new issue