]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
DEUWO - api ssl redirect
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Mon, 3 Sep 2018 13:40:11 +0000 (15:40 +0200)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Mon, 3 Sep 2018 13:40:11 +0000 (15:40 +0200)
customer/deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml

index 8ce0169ddc999f7f4f79eae6249dae9cc4765fe0..01833476c1044efffbf9631e371b84288541fc6c 100644 (file)
@@ -302,6 +302,8 @@ infra::profile::apache::pp_vhosts:
     docroot_owner: apache
     docroot_group: apache
     docroot_mode: '2775'
+    setenvif:
+      - 'HTTPS on HTTPS=on'
     directories:
       - directory_root:
         provider: directory
@@ -321,7 +323,12 @@ infra::profile::apache::pp_vhosts:
           - '%%{ich-trickse}{HTTPS} !=on'
         rewrite_rule:
           - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
-#          - '(.*) https://api.deutsche-wohnen.com$1 [R=301,L]'
+      - https:
+        comment: 'Alles auf https umleiten'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP:HTTPS} !=on'
+        rewrite_rule:
+          - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
 # logstash
 
 logstash::generic_resource: