Mercurial > repos > other > Puppet
comparison modules/website/templates/https_core_conf.erb @ 173:c72d2b5f9be2 puppet-3.6
Try to fix NextCloud warnings about "wrong" headers
The problem is that "always set" results in two values and NextCloud
checks for a perfect match.
Removing "always" means header only gets added on "success" pages
and not error pages, so hopefully it still gets added in all
appropriate places.
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 17 Feb 2018 20:59:37 +0000 |
parents | 9cf4ebd6d2ba |
children | 4519b727cc4c |
comparison
equal
deleted
inserted
replaced
172:1af9fd04c285 | 173:c72d2b5f9be2 |
---|---|
1 Header always set Strict-Transport-Security "max-age=16070400; includeSubDomains" | 1 Header always set Strict-Transport-Security "max-age=16070400; includeSubDomains" |
2 Header always set X-Xss-Protection "1; mode=block" | 2 Header set X-Xss-Protection "1; mode=block" |
3 Header always set X-Content-Type-Options "nosniff" | 3 Header set X-Content-Type-Options "nosniff" |
4 Header always set X-Frame-Options "SAMEORIGIN" | 4 Header set X-Frame-Options "SAMEORIGIN" |
5 | 5 |
6 RewriteCond %{HTTP_HOST} !=<%= @primary_name %> | 6 RewriteCond %{HTTP_HOST} !=<%= @primary_name %> |
7 RewriteRule ^(.*)$ https://<%= @primary_name %>$1 [R=301,L] | 7 RewriteRule ^(.*)$ https://<%= @primary_name %>$1 [R=301,L] |