summaryrefslogtreecommitdiff
path: root/templates/vhosts/perl/perl.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/perl/perl.erb')
-rw-r--r--templates/vhosts/perl/perl.erb12
1 files changed, 4 insertions, 8 deletions
diff --git a/templates/vhosts/perl/perl.erb b/templates/vhosts/perl/perl.erb
index 5153925..55e6e56 100644
--- a/templates/vhosts/perl/perl.erb
+++ b/templates/vhosts/perl/perl.erb
@@ -126,15 +126,13 @@
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 ssl_mode.to_s == 'force' then -%>
+
Header add Strict-Transport-Security "max-age=15768000"
- <%- end -%>
<%- if run_mode.to_s =~ /(proxy\-|static\-)?itk/ -%>
<IfModule mpm_itk_module>
AssignUserId <%= run_uid+" "+run_gid %>
@@ -337,15 +335,13 @@
ErrorLog <%= logdir %>/<%= logfileprefix %>-error_log
CustomLog <%= logdir %>/<%= logfileprefix %>-access_log combined
<%- end -%>
-
<%- if default_charset.to_s != 'absent' then -%>
- AddDefaultCharset <%= default_charset %>
+ AddDefaultCharset <%= default_charset %>
<%- end -%>
- <%- if ssl_mode.to_s == 'force' then -%>
+
Header add Strict-Transport-Security "max-age=15768000"
- <%- end -%>
<%- unless run_mode.to_s == 'static-itk' -%>
<Directory "<%= documentroot %>/">
AllowOverride <%= allow_override %>