Set HSTS for sslonly websites in roles/httpd/reverseproxy

This commit is contained in:
Till Maas 2015-02-12 21:41:27 +01:00
parent ee9730d6b7
commit ce8655f7d1
7 changed files with 1 additions and 12 deletions

View file

@ -14,6 +14,7 @@
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [NE]
Header always add Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
{% else %}
Include "conf.d/{{ name }}/*.conf"
{% endif %}