From d62fff487bcbda232d4e7d83e5cdf3f321066e4c Mon Sep 17 00:00:00 2001 From: Andreas Gerstenberg Date: Fri, 7 Apr 2017 12:30:12 +0200 Subject: [PATCH] marketing-publicis-ai add rewrites --- .../marketing-publicis-ai.pixelpark.net.yaml | 33 ++++++++++++++----- 1 file changed, 24 insertions(+), 9 deletions(-) diff --git a/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml b/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml index 6cecf7a1..f7e93739 100644 --- a/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml +++ b/customer/pixelpark/marketing-publicis-ai.pixelpark.net.yaml @@ -99,18 +99,33 @@ infra::profile::apache::pp_vhosts: allow_override: - All directoryindex: index.php index.html - - location1: - provider: location - path: '/' - auth_type: Digest - auth_name: server - auth_digest_provider: file - auth_digest_algorithm: MD5 - auth_user_file: '/etc/httpd/htdigest' - auth_require: 'valid-user' +# - location1: +# provider: location +# path: '/' +# auth_type: Digest +# auth_name: server +# auth_digest_provider: file +# auth_digest_algorithm: MD5 +# auth_user_file: '/etc/httpd/htdigest' +# auth_require: 'valid-user' setenv: - 'MAUTIC_ENV live' + rewrites: + - alias: + comment: 'Weiterleitung auf https' + rewrite_cond: + - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]' + rewrite_rule: + - '^(.*)$ https://campaign.pepperl-fuchs.de$1 [L,R=301]' + - alias1: + comment: 'Weiterleitung auf Unterseite' + rewrite_cond: + - '%%{ich-trickse}{HTTP_HOST} ^campaign.pepperl-fuchs.de$ [NC]' + rewrite_rule: + - '^(/?)$ https://campaign.pepperl-fuchs.de//feldbusmodule$1 [L,R=301]' + setenvif_ssl: + - 'HTTPS on HTTPS=on' infra::profile::cron::cronjobs: mautic_update: -- 2.39.5