docroot_owner: apache
docroot_group: apache
docroot_mode: '2775'
+ setenvif:
+ - 'HTTPS on HTTPS=on'
directories:
- directory_root:
provider: directory
- '%%{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: