]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
Update https rewrite
authorMichael Krause <michael.krause@publicispixelpark.de>
Mon, 17 Sep 2018 13:55:08 +0000 (15:55 +0200)
committerMichael Krause <michael.krause@publicispixelpark.de>
Mon, 17 Sep 2018 13:55:08 +0000 (15:55 +0200)
customer/pixelpark/test-jira01.pixelpark.net.yaml

index dc0345c976e740b3fac7248fd0f7192e41d58e7a..1438a815a91adb89e93101f93f379b7c727fddb6 100644 (file)
@@ -48,11 +48,11 @@ infra::profile::apache::pp_vhosts:
     headers_ssl:
       - always set Strict-Transport-Security "max-age=31556926"
     rewrites:
-    rewrites:
-      - httpsonly:
-        comment: 'Alles auf https umleiten.'
+     - comment: 'Alles auf https umleiten.'
+        rewrite_cond:
+          - '%{literal("%")}{HTTPS} !=on'
         rewrite_rule:
-          - ^(.*)$ https://%%{ich-trickse}{HTTP_HOST}$1 [R=301,L]
+          - ^(.*)$ https://%{literal("%")}{HTTP_HOST}$1 [R=301,L]
       - comment: 'Rewrite from / to /jira'
         rewrite_rule:
           - ^(/?)$ /jira/ [R=301,L]