summaryrefslogtreecommitdiff
path: root/templates/vhosts/php_joomla/php_joomla.erb
diff options
context:
space:
mode:
Diffstat (limited to 'templates/vhosts/php_joomla/php_joomla.erb')
-rw-r--r--templates/vhosts/php_joomla/php_joomla.erb8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/vhosts/php_joomla/php_joomla.erb b/templates/vhosts/php_joomla/php_joomla.erb
index 47da796..1cd17ba 100644
--- a/templates/vhosts/php_joomla/php_joomla.erb
+++ b/templates/vhosts/php_joomla/php_joomla.erb
@@ -163,6 +163,10 @@
</IfModule>
<%- end -%>
+ <%- if ssl_mode.to_s == 'force' then -%>
+ Header add Strict-Transport-Security "max-age=15768000"
+
+ <%- end -%>
<Directory "<%= documentroot %>/">
Include include.d/joomla.inc
@@ -394,6 +398,10 @@
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 == 'static-itk' -%>
<Directory "<%= documentroot %>/">
Include include.d/joomla.inc