From 3963c8fe7beb65c5900eacbcb8f07b90cbe5e6a8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oliver=20B=C3=B6ttcher?= Date: Fri, 2 Feb 2018 12:46:12 +0100 Subject: [PATCH] ODT - int - fix rewrites --- .../int-cms-odt-daimler-com.pixelpark.net.yaml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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)' -- 2.39.5