diff options
Diffstat (limited to 'templates/vhosts/redirect/redirect.erb')
-rw-r--r-- | templates/vhosts/redirect/redirect.erb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/vhosts/redirect/redirect.erb b/templates/vhosts/redirect/redirect.erb index ba93c46..e1928b5 100644 --- a/templates/vhosts/redirect/redirect.erb +++ b/templates/vhosts/redirect/redirect.erb @@ -61,6 +61,10 @@ CustomLog <%= logdir %>/access_log combined <%- end -%> + <%- if ssl_mode.to_s == 'force' then -%> + Header add Strict-Transport-Security "max-age=15768000" + + <%- end -%> Redirect permanent / https://<%= options %> </VirtualHost> |