summaryrefslogtreecommitdiff
path: root/templates/vhosts/partials/mod_security.erb
blob: 0e0f803366fb73f691ba337a70af4c9ef56bb90e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <IfModule mod_security2.c>
    <%- if mod_security.to_s == 'true' then -%>
    SecRuleEngine On
    <%- if mod_security_relevantonly.to_s == 'true' then -%>
    SecAuditEngine RelevantOnly
    <%- else -%>
    SecAuditEngine On
    <%- end -%>
    <%- else -%>
    SecRuleEngine Off
    SecAuditEngine Off
    <%- end -%>
    SecAuditLogType Concurrent
    SecAuditLogStorageDir <%= logdir %>/
    SecAuditLog <%= logdir %>/mod_security_audit.log
    SecDebugLog <%= logdir %>/mod_security_debug.log
  </IfModule>