From 40dcdd4c45df91b8fbf8178447cb527a2c6151bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20B=C3=B6ttcher?= Date: Wed, 23 Aug 2017 17:42:13 +0200 Subject: [PATCH] ODT - redirect to login --- customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml b/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml index 78331198..b04a92b6 100644 --- a/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml +++ b/customer/mbvd-odt/odt-daimler-com.pixelpark.net.yaml @@ -31,10 +31,15 @@ infra::profile::apache::pp_vhosts: rewrites_non_ssl: - https: comment: 'almost all to https' - rewritecond: + rewrite_cond: - '%%{ich-trickse}{REQUEST_URI} !^/.\.html' rewrite_rule: - '^(.*)$ https://odt.daimler.com$1 [L,R=301]' + rewrites_ssl: + - logon: + comment: 'redirect to logon.do' + rewrite_rule: + - '^(/?)$ https://odt.daimler.com/logon.do [L,R=301]' proxy_preserve_host: true proxy_pass: - { path: /teilenews-service, url: 'http://localhost:8081/teilenews-service' } -- 2.39.5