]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
added https rewrite cond test-webstats01.pixelpark.net
authorSascha Strassheim <sascha.strassheim@pixelpark.com>
Fri, 10 Nov 2017 12:38:46 +0000 (13:38 +0100)
committerSascha Strassheim <sascha.strassheim@pixelpark.com>
Fri, 10 Nov 2017 12:38:46 +0000 (13:38 +0100)
customer/pixelpark-piwik/test-webstats01.pixelpark.net.yaml

index 8b4d16df409650477cf1b6ec96bca09e01795b17..3693a32ab0e0d5ca48b8c36bc096d0892b12653a 100644 (file)
@@ -76,3 +76,9 @@ infra::profile::apache::pp_vhosts:
         allow_override:
           - All
         directoryindex: index.php index.html
+          - https:
+        comment: 'http to https'
+    rewrite_cond:
+      - '%%{ich-trickse}{HTTPS} !=on'
+    rewrite_rule:
+      - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'