forked from ISTI-ansible-roles/ansible-roles
nginx virtualhost template: give a way to change the error directory.
This commit is contained in:
parent
6303c7c270
commit
1d7d31b8f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue