From 0e6a257a855cff213aea22f1fb3a544553f1a284 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20B=C3=B6ttcher?= Date: Thu, 22 Mar 2018 12:42:41 +0100 Subject: [PATCH] mbvd-static - truckworks proxy --- .../www-mbvd-static.pixelpark.net.yaml | 95 +++++++++++++++++++ 1 file changed, 95 insertions(+) diff --git a/customer/mbvd-static/www-mbvd-static.pixelpark.net.yaml b/customer/mbvd-static/www-mbvd-static.pixelpark.net.yaml index 238e24a1..10c2f669 100644 --- a/customer/mbvd-static/www-mbvd-static.pixelpark.net.yaml +++ b/customer/mbvd-static/www-mbvd-static.pixelpark.net.yaml @@ -196,6 +196,101 @@ infra::profile::apache::pp_vhosts: - '^(.*)/$ /$1/index.html [PT,L]' headers: - 'unset Server' + truckworks: + servername: www.truckworks.de + serveraliases: + - truckworks.de + - truckworks.dk + - truckworks.fr + - truckworks.com + - truckworks.es + - truckworks.it + - truckworks.pl + - truckworks.ru + - truckworks.be + - truckworks.ch + - truckworks.co.uk + - truckworks.eu + - truckworks.nl + - www.truckworks.dk + - www.truckworks.fr + - www.truckworks.com + - www.truckworks.es + - www.truckworks.it + - www.truckworks.pl + - www.truckworks.ru + - www.truckworks.be + - www.truckworks.ch + - www.truckworks.co.uk + - www.truckworks.eu + - www.truckworks.nl + docroot: /srv/www/truckworks + ssl: true + cert_customer: 'daimler' + proxy_preserve_host: true + proxy_pass: + - { path: /, url: 'http://192.168.170.135:47080/' } + rewrites: + dk: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.dk$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/da [R,L]' + fr: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.fr$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/fr [R,L]' + com: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.com$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/en [R,L]' + es: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.es$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/es [R,L]' + it: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.it$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/it [R,L]' + pl: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.pl$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/pl [R,L]' + ru: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.ru$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/ru [R,L]' + be: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.be$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/en [R,L]' + ch: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.ch$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/en [R,L]' + uk: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.co\.uk$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/en [R,L]' + eu: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.eu$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/en [R,L]' + nl: + rewrite_cond: + - '%{HTTP_HOST} ^(www\.)?truckworks\.nl$' + rewrite_rule: + - '^(.*)$ http://www.truckworks.de/nl [R,L]' -- 2.39.5