summaryrefslogtreecommitdiff
path: root/templates/vhosts/static
diff options
context:
space:
mode:
authorMarcel Haerry <haerry@puzzle.ch>2009-06-16 11:18:35 +0200
committerMarcel Haerry <haerry@puzzle.ch>2009-06-16 11:18:35 +0200
commitc22602a9fae1e97c31ee3f628fc0d2743d9fb216 (patch)
treead903c35a4f6e5fb444e33bbb5613c59b4ef57b5 /templates/vhosts/static
parentf85786eeeb72716ad62612b8c9863e6d3b0b2530 (diff)
set mod_sec block as well for static hostings
Diffstat (limited to 'templates/vhosts/static')
-rw-r--r--templates/vhosts/static/OpenBSD.erb24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/vhosts/static/OpenBSD.erb b/templates/vhosts/static/OpenBSD.erb
index 6ba3cf3..ee0abd8 100644
--- a/templates/vhosts/static/OpenBSD.erb
+++ b/templates/vhosts/static/OpenBSD.erb
@@ -34,6 +34,18 @@
<%- end -%>
</Directory>
+ <IfModule mod_security2.c>
+ <%- if mod_security.to_s == 'true' then -%>
+ SecRuleEngine On
+ <%- else -%>
+ SecRuleEngine Off
+ <%- end -%>
+ SecAuditLogType Concurrent
+ SecAuditLogStorageDir <%= logdir %>/
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
+ </IfModule>
+
<%- end -%>
<%- unless additional_options.to_s == 'absent' then -%>
<%= additional_options %>
@@ -74,6 +86,18 @@
<%- end -%>
</Directory>
+ <IfModule mod_security2.c>
+ <%- if mod_security.to_s == 'true' then -%>
+ SecRuleEngine On
+ <%- else -%>
+ SecRuleEngine Off
+ <%- end -%>
+ SecAuditLogType Concurrent
+ SecAuditLogStorageDir <%= logdir %>/
+ SecAuditLog <%= logdir %>/mod_security_audit.log
+ SecDebugLog <%= logdir %>/mod_security_debug.log
+ </IfModule>
+
<%- end %>
<%- unless additional_options.to_s == 'absent' then -%>
<%= additional_options %>