From: Andreas Gerstenberg Date: Wed, 12 Apr 2017 14:11:32 +0000 (+0200) Subject: marketing-publicis-ai add rewrite rule X-Git-Tag: v0.1.0~3182 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=062bc679e747530ba99e6c3c71c697582c54b42d;p=pixelpark%2Fhiera.git marketing-publicis-ai add rewrite rule --- diff --git a/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml b/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml index f41fe2ab..05f10f11 100644 --- a/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml +++ b/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml @@ -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'