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;