From: Andreas Gerstenberg Date: Wed, 19 Apr 2017 11:49:39 +0000 (+0200) Subject: mbvd-bannershop add rewrite_rule X-Git-Tag: v0.1.0~3132 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=b25d0bdf7d4adba73cdedfe8c481748f66006e76;p=pixelpark%2Fhiera.git mbvd-bannershop add rewrite_rule --- diff --git a/customer/mbvd-bannershop/stage-web-bannershop-mercedes-benz-de.pixelpark.net.yaml b/customer/mbvd-bannershop/stage-web-bannershop-mercedes-benz-de.pixelpark.net.yaml index f24f3faa..e698c1a3 100644 --- a/customer/mbvd-bannershop/stage-web-bannershop-mercedes-benz-de.pixelpark.net.yaml +++ b/customer/mbvd-bannershop/stage-web-bannershop-mercedes-benz-de.pixelpark.net.yaml @@ -15,8 +15,9 @@ infra::profile::ruby_passenger::projects: servername: stage-web-bannershop-mercedes-benz-de.pixelpark.net serveraliases: - stage-www-bannershop-mercedes-benz-de.pixelpark.net # Domain for LB IP + - www.citan-tourer.de # alter Daimler DNS Eintrag cert_servername: 'wildcard.pixelpark.net' - cert_customer: 'pixelpark' + cert_customer: 'pixelpark' ssl_cert: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.net-key.pem' ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' @@ -43,3 +44,9 @@ infra::profile::ruby_passenger::projects: auth_digest_algorithm: MD5 auth_user_file: '/etc/httpd/htdigest' auth_require: 'valid-user' + rewrites: + - comment: ' www.citan-tourer.de -> www.mercedes-benz.de' + rewrite_cond: + - '%%{ich-trickse}{HTTP_HOST} ^www.citan-tourer.de$ [NC]' + rewrite_rule: + - '^(.*)$ http://www.mercedes-benz.de/content/germany/mpc/mpc_germany_website/de/home_mpc/van/home/new_vans/models/citan_415/tourer_private.html [L,R=301]'