Set error optionnal

This commit is contained in:
Dryusdan 2021-05-27 11:23:22 +02:00
parent c9c0ab84be
commit f892c8b788
1 changed files with 2 additions and 0 deletions

View File

@ -1,3 +1,4 @@
{% if errorpage is defined and errorpage is False %}
error_page 401 /401.html;
location = /401.html {
root /var/www/html/errors/;
@ -19,3 +20,4 @@
root /var/www/html/errors/;
internal;
}
{% endif %}