From 8c1542943efc4a3756d44a89fee648cd2472fdbd Mon Sep 17 00:00:00 2001
From: Philipp Dallig <philipp.dallig@pixelpark.com>
Date: Tue, 27 Jun 2017 14:34:58 +0200
Subject: [PATCH] mobile-aem - Add https Rewrite

---
 customer/mobile-aem/production.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/customer/mobile-aem/production.yaml b/customer/mobile-aem/production.yaml
index 51127d53..daa16ecf 100644
--- a/customer/mobile-aem/production.yaml
+++ b/customer/mobile-aem/production.yaml
@@ -109,6 +109,12 @@ infra::profile::aem::publish::pp_vhosts:
         sethandler: dispatcher-handler
         options:
           - FollowSymLinks
+    rewrites:
+      - comment: 'http to https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTPS} !=on'
+        rewrite_rule:
+          - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'
   motortalk:
     serveraliases:
       - motortalk-de.pixelpark.net
-- 
2.39.5