]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
ODT - int - fix rewrites
authorOliver Böttcher <oliver.boettcher@pixelpark.com>
Fri, 2 Feb 2018 11:46:12 +0000 (12:46 +0100)
committerOliver Böttcher <oliver.boettcher@pixelpark.com>
Fri, 2 Feb 2018 11:46:12 +0000 (12:46 +0100)
customer/mbvd-odt/int-cms-odt-daimler-com.pixelpark.net.yaml

index f50395cfe00efc28c95e7dc441e392d105b4b2ac..f889ab606729be9ce6a79172cf27b8a7a4eeba43 100644 (file)
@@ -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)'