]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
update rewrites
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 16 Aug 2017 09:19:28 +0000 (11:19 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 16 Aug 2017 09:19:28 +0000 (11:19 +0200)
customer/spk-spar-checker/test.yaml

index a9a7802490e9eecd6d91f22c94957c31189da4da..a033857a5e037e75a15eec39b402d3b82c20a617 100644 (file)
@@ -57,11 +57,11 @@ infra::profile::apache::pp_vhosts:
     setenvif_ssl:
       - 'HTTPS on HTTPS=on'
     rewrites:
-#      - comment: 'http to https'
-#        rewrite_cond:
-#          - '%%{ich-trickse}{HTTPS} !=on'
-#        rewrite_rule:
-#          - '(.*) https://stage-spar-checker-de.pixelpark.net%%{ich-trickse}{REQUEST_URI} [R=301,L]'
+      - comment: 'http to https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTPS} !=on'
+        rewrite_rule:
+          - '^(.*)$ https://stage-spar-checker-de.pixelpark.net$1 [R=301,L]'
       - comment: 'Alle Aliase auf Servername'
         rewrite_cond:
           - '%%{ich-trickse}{HTTP_HOST} !^stage-spar-checker-de.pixelpark.net$ [NC]'