Use try_files instead of root
This commit is contained in:
parent
a409c240e1
commit
1620322118
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue