Can define error_pages
This commit is contained in:
parent
441bdf0167
commit
d5e6d8710d
@ -1,2 +1,4 @@
|
|||||||
---
|
---
|
||||||
path: /
|
path: /
|
||||||
|
error_pages:
|
||||||
|
404: /err.html
|
||||||
|
@ -26,7 +26,9 @@
|
|||||||
chunked_transfer_encoding off;
|
chunked_transfer_encoding off;
|
||||||
proxy_pass https://storage_nemunaire/{{ bucket }}{{ path }}/;
|
proxy_pass https://storage_nemunaire/{{ bucket }}{{ path }}/;
|
||||||
|
|
||||||
error_page 404 /err.html;
|
{% for error_page in error_pages %}
|
||||||
|
error_page {{ error_page }} /{{ error_pages[error_page] }};
|
||||||
|
{% endfor %}
|
||||||
#try_files $uri $uri/index.html $uri.html =404;
|
#try_files $uri $uri/index.html $uri.html =404;
|
||||||
}
|
}
|
||||||
location ~ /$ {
|
location ~ /$ {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user