From: Philipp Dallig Date: Wed, 23 Nov 2016 14:16:50 +0000 (+0100) Subject: sirona-aem - Error-Pages fuer Spotlight Auftritt + Anpassung Author X-Git-Tag: v0.1.0~3779 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f0b9493856d24522009ddd682f7fe09c9bb61574;p=pixelpark%2Fhiera.git sirona-aem - Error-Pages fuer Spotlight Auftritt + Anpassung Author Rewrite --- diff --git a/customer/sirona-aem/production.yaml b/customer/sirona-aem/production.yaml index d1db1546..a7895484 100644 --- a/customer/sirona-aem/production.yaml +++ b/customer/sirona-aem/production.yaml @@ -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/' }