]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
marketing-publicis-ai add rewrite rule
authorAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 12 Apr 2017 14:11:32 +0000 (16:11 +0200)
committerAndreas Gerstenberg <gerstenberg@pixelpark.com>
Wed, 12 Apr 2017 14:11:32 +0000 (16:11 +0200)
customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml

index f41fe2ab7e68b59bbc1ca0bd7bcbc23d10f982d4..05f10f117cf665fdbc178ccc254db37807cd968b 100644 (file)
@@ -119,6 +119,11 @@ infra::profile::apache::pp_vhosts:
 #        require: 'ip 217.66.51.0/24'
 #        require: 'ip 217.66.56.0/24'
 
+    setenvif_ip_ranges:
+      - 'Remote_Addr 217.66.50.0/24 mautic_access=true'
+      - 'Remote_Addr 217.66.51.0/24 mautic_access=true'
+      - 'Remote_Addr 217.66.56.0/24 mautic_access=true'
+
     setenv:
       - 'MAUTIC_ENV live'
     rewrites:
@@ -128,12 +133,12 @@ infra::profile::apache::pp_vhosts:
           - '%%{ich-trickse}{HTTPS} !=on [NC]'
         rewrite_rule:
           - '^(.*)$ https://campaign.pepperl-fuchs.de$1 [R=301,L]'
-#      - alias1:
-#        comment: 'Weiterleitung auf Unterseite'
-#        rewrite_cond:
-#          - '%%{ich-trickse}{HTTP_HOST} ^campaign.pepperl-fuchs.de$ [NC]'
-#        rewrite_rule:
-#          - '^(/?)$ https://campaign.pepperl-fuchs.de/feldbusmodule [R=301,L]'
+      - alias1:
+        comment: 'Weiterleitung auf Unterseite'
+        rewrite_cond:
+          - '%%{ich-trickse}{ENV:mautic_access} !=true'
+        rewrite_rule:
+          - '^(/?)$ https://campaign.pepperl-fuchs.de/feldbusmodule [R=301,L]'
     setenvif_ssl:
       - 'HTTPS on HTTPS=on'