From: Oliver Böttcher Date: Thu, 15 Dec 2016 11:27:32 +0000 (+0100) Subject: mhk rewrites X-Git-Tag: v0.1.0~3725^2~15 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=7d58742fb4f6dfbaf3e15584d1d6dc836f4ec19b;p=pixelpark%2Fhiera.git mhk rewrites --- diff --git a/customer/mhk/red-mhk-kueche-de.pixelpark.net.yaml b/customer/mhk/red-mhk-kueche-de.pixelpark.net.yaml index d572c062..19559418 100644 --- a/customer/mhk/red-mhk-kueche-de.pixelpark.net.yaml +++ b/customer/mhk/red-mhk-kueche-de.pixelpark.net.yaml @@ -43,14 +43,11 @@ site::profile::apache::pp_vhosts: ssl_cert: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.net-key.pem' ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' -# rewrites: -# - 404handler: -# comment: 'missing export to opencms' -# rewrite_cond: -# - '%%{ich-trickse}{REQUEST_URI} ^/export/(.*) [NC]' -# - '%%{ich-trickse}{DOCUMENT_ROOT}%%{REQUEST_FILENAME} !-f' -# rewrite_rule: -# - '^(.*)$ http://localhost:8080/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]' + rewrites_non_ssl: + - https: + comment: 'all to https' + rewrite_rule: + - '^(.*)$ https://red-mhk-kueche-de.pixelpark.net$1 [L,R=301]' proxy_preserve_host: true proxy_pass: - { path: /editor-webstart, url: 'ajp://localhost:40009/editor-webstart' } @@ -61,6 +58,11 @@ site::profile::apache::pp_vhosts: ssl_cert: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' ssl_key: '/etc/pki/tls/private/wildcard.pixelpark.net-key.pem' ssl_chain: '/etc/pki/tls/certs/wildcard.pixelpark.net-cert.pem' + rewrites_non_ssl: + - https: + comment: 'all to https' + rewrite_rule: + - '^(.*)$ https://studio-red-mhk-kueche-de.pixelpark.net$1 [L,R=301]' proxy_preserve_host: true proxy_pass: - { path: /studio, url: 'ajp://localhost:40009/studio' }