Set HSTS for sslonly websites in roles/httpd/reverseproxy
This commit is contained in:
parent
ee9730d6b7
commit
ce8655f7d1
7 changed files with 1 additions and 12 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue