From c22602a9fae1e97c31ee3f628fc0d2743d9fb216 Mon Sep 17 00:00:00 2001 From: Marcel Haerry Date: Tue, 16 Jun 2009 11:18:35 +0200 Subject: set mod_sec block as well for static hostings --- templates/vhosts/static/OpenBSD.erb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) 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 -%> + + <%- 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 + + <%- end -%> <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> @@ -74,6 +86,18 @@ <%- end -%> + + <%- 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 + + <%- end %> <%- unless additional_options.to_s == 'absent' then -%> <%= additional_options %> -- cgit v1.2.3