From: Thomas Dalichow Date: Tue, 2 Jan 2018 12:10:45 +0000 (+0100) Subject: gsub - rewrite from HTTP to HTTPS X-Git-Tag: v0.1.0~1836 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=8f2201d3e4ed32a048a771c3616c9021e12d62e2;p=pixelpark%2Fhiera.git gsub - rewrite from HTTP to HTTPS --- diff --git a/customer/gsub-teilhabeberatung/web-teilhabeberatung-de.pixelpark.net.yaml b/customer/gsub-teilhabeberatung/web-teilhabeberatung-de.pixelpark.net.yaml index 3ea80b52..9f836775 100644 --- a/customer/gsub-teilhabeberatung/web-teilhabeberatung-de.pixelpark.net.yaml +++ b/customer/gsub-teilhabeberatung/web-teilhabeberatung-de.pixelpark.net.yaml @@ -23,6 +23,13 @@ infra::profile::drupal::projects: ssl_chain: '/etc/pki/tls/certs/www.teilhabeberatung.de-cert.pem' ssl_key: '/etc/pki/tls/private/www.teilhabeberatung.de-key.pem' use_standard_docroot_directory: false # because of index.html (directoryindex) + rewrites: + - comment: 'http to https' + rewrite_cond: + - '%%{ich-trickse}{HTTPS} !=on' + rewrite_rule: + - '(.*) https://%%{ich-trickse}{HTTP_HOST}%%{ich-trickse}{REQUEST_URI} [R=301,L]' + directories: - directory_root: provider: directory