]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
sirona-aem - Error-Pages fuer Spotlight Auftritt + Anpassung Author
authorPhilipp Dallig <philipp.dallig@pixelpark.com>
Wed, 23 Nov 2016 14:16:50 +0000 (15:16 +0100)
committerPhilipp Dallig <philipp.dallig@pixelpark.com>
Wed, 23 Nov 2016 14:16:50 +0000 (15:16 +0100)
Rewrite

customer/sirona-aem/production.yaml

index d1db1546f3c4288183e9301be558f70d73d4eee1..a78954840c5cf664822039e4eadc76a8f132d449 100644 (file)
@@ -509,6 +509,9 @@ site::profile::aem::publish::pp_vhosts:
       - 'Accept-Language ^zh language=zh-cn'
     headers:
       - 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
+    error_documents:
+      - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+      - { error_code: 500 , document: "/en-us/error-pages/500.html" }
     directories:
       - docroot:
         provider: directory
@@ -527,6 +530,18 @@ site::profile::aem::publish::pp_vhosts:
         auth_require: 'valid-user'
         require:
           - local
+      - zh-cn:
+        provider: locationmatch
+        path: '^/zh-cn/'
+        error_documents:
+          - { error_code: 404 , document: "/zh-cn/error-pages/404.html" }
+          - { error_code: 500 , document: "/zh-cn/error-pages/500.html" }
+      - de-de:
+        provider: locationmatch
+        path: '^/de-de/'
+        error_documents:
+          - { error_code: 404 , document: "/de-de/error-pages/404.html" }
+          - { error_code: 500 , document: "/de-de/error-pages/500.html" }
     rewrites:
       - language_rewrite:
         comment: 'lanugage Rewrite use Env Vars'
@@ -860,7 +875,7 @@ site::profile::aem::author::pp_vhosts:
       - https:
         comment: 'all to https'
         rewrite_rule:
-          - '^(.*)$ https://prod-sirona-author.pixelpark.net$1 [L,R=302]'
+          - '^(.*)$ https://prod-sirona-author.pixelpark.net$1 [L,R=301,QSA,NE]'
     proxy_preserve_host: true
     proxy_pass:
       - { path: /, url: 'http://localhost:4502/' }