diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2009-06-16 11:18:35 +0200 |
---|---|---|
committer | Marcel Haerry <haerry@puzzle.ch> | 2009-06-16 11:18:35 +0200 |
commit | c22602a9fae1e97c31ee3f628fc0d2743d9fb216 (patch) | |
tree | ad903c35a4f6e5fb444e33bbb5613c59b4ef57b5 | |
parent | f85786eeeb72716ad62612b8c9863e6d3b0b2530 (diff) |
set mod_sec block as well for static hostings
-rw-r--r-- | templates/vhosts/static/OpenBSD.erb | 24 |
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 %> |