view modules/website/templates/https_core_conf.erb @ 156:9cf4ebd6d2ba puppet-3.6

Remove slash in redirect because group catches path slash Having this slash causes double-slash
author IBBoard <dev@ibboard.co.uk>
date Tue, 28 Mar 2017 21:12:49 +0100
parents e661cb2dd942
children c72d2b5f9be2
line wrap: on
line source

Header always set Strict-Transport-Security "max-age=16070400; includeSubDomains"
Header always set X-Xss-Protection "1; mode=block"
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "SAMEORIGIN"

RewriteCond %{HTTP_HOST} !=<%= @primary_name %>
RewriteRule ^(.*)$ https://<%= @primary_name %>$1 [R=301,L]