]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
nissan - rewrite HTTP to HTTPS
authorThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Fri, 18 May 2018 12:37:26 +0000 (14:37 +0200)
committerThomas Dalichow <thomas.dalichow@publicispixelpark.de>
Fri, 18 May 2018 12:37:48 +0000 (14:37 +0200)
customer/nissan/web-nissan-meinedaten-de.pixelpark.net.yaml

index e970e53f18c53d64294324f49c7e351f4016cf82..52e142d5b47d97779e5f270a398e6887e647424b 100644 (file)
@@ -37,6 +37,11 @@ infra::profile::apache::pp_vhosts:
         addhandlers:
           - { handler: "proxy:unix:/var/run/php5-fpm-nissan.sock|fcgi://./" , extensions: '.php' }
     rewrites:
+      - comment: 'Alles auf https umleiten.'
+        rewrite_cond:
+          - '%{literal("%")}{HTTPS} !=on'
+        rewrite_rule:
+          - ^(.*)$ https://%{literal("%")}{HTTP_HOST}$1 [R=301,L]
       - comment: 'DE Rewrite nach /coming-soon'
         rewrite_cond:
           - '%{literal("%")}{HTTP_HOST} ^(www\.)?nissan-meinedaten.de$'