From 23f897b454166ef8f2116993653b8851398fb8e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20B=C3=B6ttcher?= Date: Mon, 3 Sep 2018 15:40:11 +0200 Subject: [PATCH] DEUWO - api ssl redirect --- .../deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/customer/deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml b/customer/deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml index 8ce0169d..01833476 100644 --- a/customer/deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml +++ b/customer/deuwo/web01-deutsche-wohnen-com.pixelpark.net.yaml @@ -302,6 +302,8 @@ infra::profile::apache::pp_vhosts: docroot_owner: apache docroot_group: apache docroot_mode: '2775' + setenvif: + - 'HTTPS on HTTPS=on' directories: - directory_root: provider: directory @@ -321,7 +323,12 @@ infra::profile::apache::pp_vhosts: - '%%{ich-trickse}{HTTPS} !=on' rewrite_rule: - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]' -# - '(.*) https://api.deutsche-wohnen.com$1 [R=301,L]' + - https: + comment: 'Alles auf https umleiten' + rewrite_cond: + - '%%{ich-trickse}{HTTP:HTTPS} !=on' + rewrite_rule: + - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]' # logstash logstash::generic_resource: -- 2.39.5