From: Oliver Böttcher Date: Tue, 13 Dec 2016 14:32:45 +0000 (+0100) Subject: apache für dev-cms-emmt-daimler-com X-Git-Tag: v0.1.0~3725^2~46^2~8 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d4f97cf4e5c13f270f8b743acdd3698e4db1dc22;p=pixelpark%2Fhiera.git apache für dev-cms-emmt-daimler-com --- 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/' }