]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
SERVICEDESK-2114 - added rewrite and https
authorThomas Heller <thomas.heller@pixelpark.com>
Thu, 7 Jun 2018 11:25:41 +0000 (13:25 +0200)
committerThomas Heller <thomas.heller@pixelpark.com>
Thu, 7 Jun 2018 11:25:41 +0000 (13:25 +0200)
customer/bmas-sozialrat/www-sozialrat-de.pixelpark.net.yaml

index 35ab02c14290ff02840bc153fca702a7442b64e5..0b571759dccb8b2aa67efecdf0ad3fff67024a2d 100644 (file)
@@ -42,6 +42,12 @@ infra::profile::apache_php::pp_vhosts:
         allow_override:
           - FileInfo
           - 'Options=MultiViews,Indexes,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]'
   generationenvertrag:
     servername: www-generationsvertrag-de.pixelpark.net
     serveraliases:
@@ -65,3 +71,14 @@ infra::profile::apache_php::pp_vhosts:
         allow_override:
           - FileInfo
           - 'Options=MultiViews,Indexes,FollowSymLinks'
+    rewrites:
+      - comment: 'SERVICEDESK-2114'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTP_HOST} ^(www\.)?xn--verlsslicher-generationenvertrag-oyc\.de$'
+        rewrite_rule:
+          - '^(.*)$ https://www.verlaesslicher-generationenvertrag.de [R=301,L]'
+      - comment: 'http to https'
+        rewrite_cond:
+          - '%%{ich-trickse}{HTTPS} !=on'
+        rewrite_rule:
+          - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]'