From 162032211893761c6447dd71484f49bb00e8f8da Mon Sep 17 00:00:00 2001 From: Daoud Clarke Date: Fri, 13 Oct 2023 20:41:39 +0100 Subject: [PATCH] Use try_files instead of root --- nginx.conf.sigil | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx.conf.sigil b/nginx.conf.sigil index 6eca4a4..4d444f2 100644 --- a/nginx.conf.sigil +++ b/nginx.conf.sigil @@ -151,11 +151,11 @@ server { ## Root and stats served statically location = / { - root /var/lib/dokku/data/storage/mwmbl/; + try_files /var/lib/dokku/data/storage/mwmbl/index.html =404; } location ~ /stats/? { - root /var/lib/dokku/data/storage/mwmbl/; + try_files /var/lib/dokku/data/storage/mwmbl/stats/index.html =404; } error_page 400 401 402 403 405 406 407 408 409 410 411 412 413 414 415 416 417 418 420 422 423 424 426 428 429 431 444 449 450 451 /400-error.html;