diff options
author | mh <mh@immerda.ch> | 2010-12-12 18:47:06 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2010-12-12 18:47:06 +0100 |
commit | 22fba9762d707383c65c822c2310b17b1eb104c2 (patch) | |
tree | e6fe3b90ff20e97965fa906a2f52ed10c24e9ce8 /templates/vhosts/php_joomla/php_joomla.erb | |
parent | a87d7b91cc95c8ac7aee327e4cf4d3ce564cdea1 (diff) |
enable HTS everywhere
Diffstat (limited to 'templates/vhosts/php_joomla/php_joomla.erb')
-rw-r--r-- | templates/vhosts/php_joomla/php_joomla.erb | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/templates/vhosts/php_joomla/php_joomla.erb b/templates/vhosts/php_joomla/php_joomla.erb index 1cd17ba..ebaefd8 100644 --- a/templates/vhosts/php_joomla/php_joomla.erb +++ b/templates/vhosts/php_joomla/php_joomla.erb @@ -154,19 +154,18 @@ <%- 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 -%> <Directory "<%= documentroot %>/"> Include include.d/joomla.inc @@ -393,15 +392,13 @@ ProxyPass / https://127.0.0.1/ <%- end -%> ProxyPassReverse / https://127.0.0.1/ - <%- 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 == 'static-itk' -%> <Directory "<%= documentroot %>/"> Include include.d/joomla.inc |