From: Oliver Böttcher Date: Mon, 3 Sep 2018 13:40:11 +0000 (+0200) Subject: DEUWO - api ssl redirect X-Git-Tag: v0.1.0~238^2~5 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=23f897b454166ef8f2116993653b8851398fb8e8;p=pixelpark%2Fhiera.git DEUWO - api ssl redirect --- 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: