From d4f97cf4e5c13f270f8b743acdd3698e4db1dc22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20B=C3=B6ttcher?= Date: Tue, 13 Dec 2016 15:32:45 +0100 Subject: [PATCH] =?utf8?q?apache=20f=C3=BCr=20dev-cms-emmt-daimler-com?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ...ev-cms-emmt-daimler-com.pixelpark.net.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/customer/mbvd-odt/dev-cms-emmt-daimler-com.pixelpark.net.yaml b/customer/mbvd-odt/dev-cms-emmt-daimler-com.pixelpark.net.yaml index da888cfa..8b91386e 100644 --- a/customer/mbvd-odt/dev-cms-emmt-daimler-com.pixelpark.net.yaml +++ b/customer/mbvd-odt/dev-cms-emmt-daimler-com.pixelpark.net.yaml @@ -2,6 +2,8 @@ site::role: base site::additional_classes: - site::profile::pg_server + - site::profile::apache + - apache::mod::proxy_ajp site::profile::pg_server::version: '9.6' postgresql::server::contrib::package_ensure: true @@ -21,3 +23,34 @@ site::profile::pg_server::configs: value: '4MB' dynamic_shared_memory_type: value: 'mmap' + +site::profile::apache::vhosts: + dev-cms: + docroot: '/var/www' + servername: dev-cms-emmt-daimler-com.pixelpark.net + 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://dev-cms-emmt-daimler-com.pixelpark.net$1 [L,R=302]' + 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]' + proxy_preserve_host: true + proxy_pass: + - { path: /opencms, '!' } + - { path: /resources, '!' } + - { path: /export, '!' } + - { path: /skins, '!' } + - { path: /genImages, '!' } + - { path: /genImagesTemp, '!' } + - { path: /fonts, '!' } + - { path: /, url: 'http://localhost:8080/opencms/' } -- 2.39.5