From 1f3926ee530369cb24756b003fa03d8a15f233d7 Mon Sep 17 00:00:00 2001
From: Philipp Dallig <philipp.dallig@pixelpark.com>
Date: Tue, 27 Jun 2017 14:23:00 +0200
Subject: [PATCH] sirona-aem - SIRONAMAIN-1121 enable en-ca

---
 customer/sirona-aem/production.yaml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/customer/sirona-aem/production.yaml b/customer/sirona-aem/production.yaml
index 307c86b5..7dbc8288 100644
--- a/customer/sirona-aem/production.yaml
+++ b/customer/sirona-aem/production.yaml
@@ -1636,6 +1636,7 @@ infra::profile::aem::publish::pp_vhosts:
       - 'Accept-Language ^en-(US|us)$ language=en-us'
       - 'Accept-Language ^en-(UK|uk)$ language=en-gb'
       - 'Accept-Language ^en-(GB|gb)$ language=en-gb'
+      - 'Accept-Language ^en-(CA|ca)$ language=en-ca'
       - 'Accept-Language ^de language=de-de'
     headers:
       - 'add Access-Control-Allow-Origin %%{ich-trickse}{AccessControlAllowOrigin}e env=AccessControlAllowOrigin'
@@ -1658,6 +1659,26 @@ infra::profile::aem::publish::pp_vhosts:
         path: /var/www/html/error_custom/
         options:
           - +Includes
+      - provider: locationmatch
+        path: '^/en/'
+        error_documents:
+          - { error_code: 404 , document: "/en/error-pages/404.html" }
+          - { error_code: 500 , document: "/en/error-pages/500.html" }
+      - provider: locationmatch
+        path: '^/en-us/'
+        error_documents:
+          - { error_code: 404 , document: "/en-us/error-pages/404.html" }
+          - { error_code: 500 , document: "/en-us/error-pages/500.html" }
+      - provider: locationmatch
+        path: '^/en-gb/'
+        error_documents:
+          - { error_code: 404 , document: "/en-gb/error-pages/404.html" }
+          - { error_code: 500 , document: "/en-gb/error-pages/500.html" }
+      - provider: locationmatch
+        path: '^/en-ca/'
+        error_documents:
+          - { error_code: 404 , document: "/en-ca/error-pages/404.html" }
+          - { error_code: 500 , document: "/en-ca/error-pages/500.html" }
       - provider: locationmatch
         path: '^/de-de/'
         error_documents:
-- 
2.39.5