]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
BERFBB-4507 https rewrite
authorsambufe <samuel.bufe@publicispixelpark.de>
Thu, 8 Mar 2018 12:34:17 +0000 (13:34 +0100)
committersambufe <samuel.bufe@publicispixelpark.de>
Thu, 8 Mar 2018 12:34:38 +0000 (13:34 +0100)
customer/fbb-www/test.yaml

index dd9ca7143173432257a57061e845d1213f614ca3..5e78257da3786f1b8717b130df1ce126823b0d46 100644 (file)
@@ -479,6 +479,12 @@ infra::profile::apache::pp_vhosts:
         path: '/var/www/publications-berlin-airport'
         allow_override:
           - None
+    rewrites:
+      rewrite_cond:
+        - '%{literal("%")}{HTTP:Https} !on'
+        - '%{literal("%")}{HTTPS} off'
+      rewrite_rule:
+        - '^(.*)$ https://%{literal("%")}{HTTP_HOST}$1 [R=301,L]'
     custom_fragment: 'ProxyPass / https://www.yumpu.com/kiosk/berlinairport'
   berlin-airport:
     docroot: '/var/www/berlin-airport'