]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
pixelpark add rewrite_rule to https
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 12 May 2017 07:59:42 +0000 (09:59 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Fri, 12 May 2017 07:59:42 +0000 (09:59 +0200)
customer/pixelpark/abnahme.pixelpark.com.yaml

index b571980c04b242f361a1f46d4c5de6928d8fc722..c04469f13ddd2dc25594d86e363c4d204d18e99b 100644 (file)
@@ -52,3 +52,11 @@ infra::profile::apache::pp_vhosts:
         auth_digest_algorithm: MD5
         auth_user_file: '/etc/httpd/htdigest'
         auth_require: 'valid-user'
+    rewrites:
+      - comment: 'Weiterleitung auf https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]'
+        rewrite_rule:
+          - '^(.*)$ https://abnahme.pixelpark.com$1 [L,R=301]'
+    setenvif_ssl:
+      - 'HTTPS on HTTPS=on'
\ No newline at end of file