summaryrefslogtreecommitdiff
path: root/templates/vhosts/webdav
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-12 18:47:06 +0100
committermh <mh@immerda.ch>2010-12-12 18:47:06 +0100
commit22fba9762d707383c65c822c2310b17b1eb104c2 (patch)
treee6fe3b90ff20e97965fa906a2f52ed10c24e9ce8 /templates/vhosts/webdav
parenta87d7b91cc95c8ac7aee327e4cf4d3ce564cdea1 (diff)
enable HTS everywhere
Diffstat (limited to 'templates/vhosts/webdav')
-rw-r--r--templates/vhosts/webdav/webdav.erb14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/vhosts/webdav/webdav.erb b/templates/vhosts/webdav/webdav.erb
index 72b3e9a..fa76b27 100644
--- a/templates/vhosts/webdav/webdav.erb
+++ b/templates/vhosts/webdav/webdav.erb
@@ -129,21 +129,19 @@
ErrorLog <%= logdir %>/error_log
CustomLog <%= logdir %>/access_log combined
<%- end -%>
-
<%- if default_charset.to_s != 'absent' then -%>
- AddDefaultCharset <%= default_charset %>
+ AddDefaultCharset <%= default_charset %>
<%- end -%>
<%- if run_mode.to_s =~ /(proxy\-|static\-)?itk/ -%>
+
<IfModule mpm_itk_module>
AssignUserId <%= run_uid+" "+run_gid %>
</IfModule>
-
<%- end -%>
- <%- if ssl_mode.to_s == 'force' then -%>
+
Header add Strict-Transport-Security "max-age=15768000"
- <%- end -%>
DAVLockDB <%= real_dav_db_dir %>/DAVLock
<Directory "<%= documentroot %>/">
Dav on
@@ -298,11 +296,13 @@
SSLProxyEngine On
ProxyPass / https://127.0.0.1/
ProxyPassReverse / https://127.0.0.1/
-
<%- if default_charset.to_s != 'absent' then -%>
- AddDefaultCharset <%= default_charset %>
+ AddDefaultCharset <%= default_charset %>
<%- end -%>
+
+ Header add Strict-Transport-Security "max-age=15768000"
+
<IfModule mod_security2.c>
<%- if mod_security.to_s == 'true' then -%>
SecRuleEngine On