]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
sirona-url-shorter - use https
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 21 Mar 2017 09:15:09 +0000 (10:15 +0100)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Tue, 21 Mar 2017 09:15:09 +0000 (10:15 +0100)
customer/sirona-url-shorter/production.yaml

index 03f8cacc22f838e59c59074762286ea371648bc7..de0eef244d0e41ee39cbcd4706b4acfcdf029928 100644 (file)
@@ -95,6 +95,12 @@ site::profile::apache::pp_vhosts:
           - MultiViews
         allow_override:
           - None
+    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]'
 
 site::profile::apache_php::fpm_pool:
   url-shorter: