From 9c23954ae663abebe17e44a7f64276837c105701 Mon Sep 17 00:00:00 2001 From: Andreas Gerstenberg Date: Fri, 31 Aug 2018 13:46:11 +0200 Subject: [PATCH] mbvd-specials add rewrites --- .../web-specials-mercedes-benz-de.pixelpark.net.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/customer/mbvd-specials/web-specials-mercedes-benz-de.pixelpark.net.yaml b/customer/mbvd-specials/web-specials-mercedes-benz-de.pixelpark.net.yaml index cd490b09..749e16ca 100644 --- a/customer/mbvd-specials/web-specials-mercedes-benz-de.pixelpark.net.yaml +++ b/customer/mbvd-specials/web-specials-mercedes-benz-de.pixelpark.net.yaml @@ -51,3 +51,14 @@ infra::profile::apache::pp_vhosts: auth_digest_algorithm: MD5 auth_user_file: '/etc/httpd/htdigest' auth_require: 'valid-user' + rewrites: + - comment: 'Alle Aliases auf mercedes-benz-eqc.de' + rewrite_cond: + - '%%{ich-trickse}{HTTP_HOST} !^mercedes-benz-eqc.de$ [NC]' + rewrite_rule: + - '^(.*)$ https://mercedes-benz-eqc.de$1 [R=301,L]' + - comment: 'Weiterleitung auf https' + rewrite_cond: + - '%%{ich-trickse}{HTTP:HTTPS} !=on [NC]' + rewrite_rule: + - '^(.*)$ https://mercedes-benz-eqc.de$1 [R=301,L]' -- 2.39.5