From: Oliver Böttcher Date: Fri, 2 Feb 2018 11:46:12 +0000 (+0100) Subject: ODT - int - fix rewrites X-Git-Tag: v0.1.0~1708 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=3963c8fe7beb65c5900eacbcb8f07b90cbe5e6a8;p=pixelpark%2Fhiera.git ODT - int - fix rewrites --- diff --git a/customer/mbvd-odt/int-cms-odt-daimler-com.pixelpark.net.yaml b/customer/mbvd-odt/int-cms-odt-daimler-com.pixelpark.net.yaml index f50395cf..f889ab60 100644 --- a/customer/mbvd-odt/int-cms-odt-daimler-com.pixelpark.net.yaml +++ b/customer/mbvd-odt/int-cms-odt-daimler-com.pixelpark.net.yaml @@ -38,11 +38,11 @@ infra::profile::apache::pp_vhosts: custom_fragment: | ProxyTimeout 3600 rewrites: - - opencms_to_slash: + rewrites_non_ssl: + - opencms_to_slash_http: comment: '/opencms to /' rewrite_rule: - - '^/opencms/(.*)$ /$1 [R,L]' - rewrites_non_ssl: + - 'RewriteRule ^/opencms/(.*)$ http://localhost:8080/opencms/$1 [P,L]' - https: comment: 'all to https' rewrite_rule: @@ -63,6 +63,10 @@ infra::profile::apache::pp_vhosts: rewrite_rule: - '^(.*)$ http://localhost:8080/opencms/handle404?exporturi=%%{ich-trickse}{REQUEST_URI}&%%{ich-trickse}{QUERY_STRING} [P]' rewrites_ssl: + - opencms_to_slash_https: + comment: '/opencms to /' + rewrite_rule: + - 'RewriteRule ^/opencms/(.*)$ http://localhost:8081/opencms/$1 [P,L]' - proxy_https: rewrite_cond: - '%%{ich-trickse}{REQUEST_URI} !^/(opencms|resources|export|skins|genImages|genImagesTemp|fonts)'