roles/zabbix-server: Redirect HTTP -> HTTPS
parent
6396b9fc49
commit
a6182c74cb
|
@ -3,4 +3,12 @@
|
||||||
# Automatically redirect requests for / to /zabbix/
|
# Automatically redirect requests for / to /zabbix/
|
||||||
{% if zabbix_web_redir|bool %}
|
{% if zabbix_web_redir|bool %}
|
||||||
RedirectMatch 301 ^/$ /zabbix/
|
RedirectMatch 301 ^/$ /zabbix/
|
||||||
|
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteCond %{HTTPS} !on
|
||||||
|
RewriteRule /.* https://%{SERVER_NAME}$0 [R=301,L]
|
||||||
|
|
||||||
|
Header always set \
|
||||||
|
Strict-Transport-Security "max-age=63072000; includeSubDomains"
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue