From: Andreas Gerstenberg Date: Fri, 31 Aug 2018 11:46:11 +0000 (+0200) Subject: mbvd-specials add rewrites X-Git-Tag: v0.1.0~244 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=9c23954ae663abebe17e44a7f64276837c105701;p=pixelpark%2Fhiera.git mbvd-specials add rewrites --- 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]'