From 1d7d31b8f3d9ad38a4c39eb66f9819302d6eeb4b Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Sun, 17 Feb 2019 13:49:56 +0100 Subject: [PATCH] nginx virtualhost template: give a way to change the error directory. --- nginx/templates/nginx-virthost.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/templates/nginx-virthost.j2 b/nginx/templates/nginx-virthost.j2 index ad0b5558..a7119735 100644 --- a/nginx/templates/nginx-virthost.j2 +++ b/nginx/templates/nginx-virthost.j2 @@ -43,7 +43,7 @@ server { index {{ item.index | default('index.html index.htm') }}; error_page 500 502 503 504 {{ item.error_page | default('/50x.html') }}; location = /50x.html { - root /usr/share/nginx/html; + root {{ item.error_path | default('/usr/share/nginx/html') }}; } location = /favicon.ico { log_not_found off; @@ -202,7 +202,7 @@ server { index {{ item.index | default('index.html index.htm') }}; error_page 500 502 503 504 {{ item.error_page | default('/50x.html') }}; location = /50x.html { - root /usr/share/nginx/html; + root {{ item.error_path | default('/usr/share/nginx/html') }}; } location = /favicon.ico { log_not_found off;