diff options
author | Jonas Smedegaard <dr@jones.dk> | 2020-10-19 16:41:54 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2020-10-19 16:41:54 +0200 |
commit | 6c01605f1953e2331e28b7d6b41266c48a88aae8 (patch) | |
tree | 7d45d56067a87acb385b1a6d6cea765e4ced516f | |
parent | 897ce41098acd66657c28464e665fafe0b075db5 (diff) |
fix set (not add) HSTS header
-rw-r--r-- | apache2/conf-available/local-securityheaders.conf | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apache2/conf-available/local-securityheaders.conf b/apache2/conf-available/local-securityheaders.conf index 0930702..7f44eed 100644 --- a/apache2/conf-available/local-securityheaders.conf +++ b/apache2/conf-available/local-securityheaders.conf @@ -6,18 +6,18 @@ <IfDefine !_NO_HSTS> <IfDefine !_NO_HSTS_SUBDOMAINS> <IfDefine !_NO_HSTS_PRELOAD> - Header add Strict-Transport-Security: "max-age=15768000;includeSubdomains;preload" + Header set Strict-Transport-Security: "max-age=15768000;includeSubdomains;preload" </IfDefine> <IfDefine _NO_HSTS_PRELOAD> - Header add Strict-Transport-Security: "max-age=15768000;includeSubdomains" + Header set Strict-Transport-Security: "max-age=15768000;includeSubdomains" </IfDefine> </IfDefine> <IfDefine _NO_HSTS_SUBDOMAINS> <IfDefine !_NO_HSTS_PRELOAD> - Header add Strict-Transport-Security: "max-age=15768000;preload" + Header set Strict-Transport-Security: "max-age=15768000;preload" </IfDefine> <IfDefine _NO_HSTS_PRELOAD> - Header add Strict-Transport-Security: "max-age=15768000" + Header set Strict-Transport-Security: "max-age=15768000" </IfDefine> </IfDefine> </IfDefine> |