nginx virtualhost template: give a way to change the error directory.

This commit is contained in:
Andrea Dell'Amico 2019-02-17 13:49:56 +01:00
parent 6303c7c270
commit 1d7d31b8f3
1 changed files with 2 additions and 2 deletions

View File

@ -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;