]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
mbvd-lp-trapo add rewrite to stage
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 31 Jan 2018 09:40:36 +0000 (10:40 +0100)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 31 Jan 2018 09:40:36 +0000 (10:40 +0100)
customer/mbvd-lp-trapo/stage-web-lp-trapo-mbvd-de.pixelpark.net.yaml

index 774774fbe43fc215843dde5a04a60a6645aae72e..f67fd56fa315722ce875652aa89220d5729040d8 100644 (file)
@@ -79,3 +79,11 @@ infra::profile::apache::pp_vhosts:
           - all granted
     proxy_pass:
       - { path: /lpp, url: 'http://localhost:8082/lpp' }
+    rewrites:
+      - comment: 'Weiterleitung auf https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+        rewrite_rule:
+          - '^(.*)$ https://stage-www-lp-trapo-mbvd-de.pixelpark.net$1 [R=301,L]'
+    setenvif_ssl:
+      - 'HTTPS on HTTPS=on'