From: Philipp Dallig Date: Thu, 6 Jul 2017 11:55:30 +0000 (+0200) Subject: fbb-www - Add Error-Documents X-Git-Tag: v0.1.0~2706^2~1 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=d25b7517e66a83295d4abccb95201880fdd0b1ba;p=pixelpark%2Fhiera.git fbb-www - Add Error-Documents --- diff --git a/customer/fbb-www/production.yaml b/customer/fbb-www/production.yaml index 446ae2eb..c9297f52 100644 --- a/customer/fbb-www/production.yaml +++ b/customer/fbb-www/production.yaml @@ -205,7 +205,7 @@ infra::profile::apache::pp_vhosts: default_vhost: true docroot_owner: apache docroot_group: apache - #wird benötigt weil die docroot auf einen symlink zeigt + #wird benoetigt weil die docroot auf einen symlink zeigt manage_docroot: false setenv: - AIRLINE_DATA /www/data/fiona/app/online/docs/_airlines/index.php @@ -217,6 +217,11 @@ infra::profile::apache::pp_vhosts: - 'set X-Content-Type-Options: nosniff' - 'set X-XSS-Protection: "1; mode=block"' - 'set X-Frame-Options: DENY' + error_documents: + - { error_code: 401 , document: "/de/global/_errors/_error401/index.php" } + - { error_code: 403 , document: "/de/global/_errors/_error403/index.php" } + - { error_code: 404 , document: "/de/global/_errors/_error404/index.php" } + - { error_code: 500 , document: "/de/global/_errors/_error500/index.php" } directories: - provider: 'directory' path: '/var/www/berlin-airport' diff --git a/customer/fbb-www/test.yaml b/customer/fbb-www/test.yaml index 517d2345..5613f8e0 100644 --- a/customer/fbb-www/test.yaml +++ b/customer/fbb-www/test.yaml @@ -272,6 +272,11 @@ infra::profile::apache::pp_vhosts: - 'set X-Content-Type-Options: nosniff' - 'set X-XSS-Protection: "1; mode=block"' - 'set X-Frame-Options: DENY' + error_documents: + - { error_code: 401 , document: "/de/global/_errors/_error401/index.php" } + - { error_code: 403 , document: "/de/global/_errors/_error403/index.php" } + - { error_code: 404 , document: "/de/global/_errors/_error404/index.php" } + - { error_code: 500 , document: "/de/global/_errors/_error500/index.php" } directories: - provider: 'directory' path: '/var/www/berlin-airport'