]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
mobile-aem - Add https Rewrite
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 27 Jun 2017 12:34:58 +0000 (14:34 +0200)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 27 Jun 2017 12:34:58 +0000 (14:34 +0200)
customer/mobile-aem/production.yaml

index 51127d53aaa6490542d2caf892ecec946c284518..daa16ecf4440208e2748b2439d9a132d119f6299 100644 (file)
@@ -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