summaryrefslogtreecommitdiff
path: root/apache2/conf-available/security.conf
diff options
context:
space:
mode:
Diffstat (limited to 'apache2/conf-available/security.conf')
-rw-r--r--apache2/conf-available/security.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/apache2/conf-available/security.conf b/apache2/conf-available/security.conf
index fabdafb..6975048 100644
--- a/apache2/conf-available/security.conf
+++ b/apache2/conf-available/security.conf
@@ -88,6 +88,6 @@ Header always set Permissions-Policy "accelerometer(), ambient-light-sensor(), a
Header always set Referrer-Policy "no-referrer-when-downgrade"
# enable Strict Transport Security
-Header always set Strict-Transport-Security "max-age=63072000;includeSubdomains;preload" "expr=-n %{HTTPS}"
+Header always set Strict-Transport-Security "max-age=63072000;includeSubdomains;preload" "expr=%{HTTPS} != 'off'"
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet