Change default 404 error page

This commit is contained in:
nemunaire 2023-05-14 12:49:40 +02:00
parent d5e6d8710d
commit 7ca5c5a378
2 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
---
path: /
error_pages:
404: /err.html
404: /404.html

View File

@ -27,7 +27,7 @@
proxy_pass https://storage_nemunaire/{{ bucket }}{{ path }}/;
{% for error_page in error_pages %}
error_page {{ error_page }} /{{ error_pages[error_page] }};
error_page {{ error_page }} {{ error_pages[error_page] }};
{% endfor %}
#try_files $uri $uri/index.html $uri.html =404;
}