added try_files directive to avoid 404 error while refreshing pages in Web UI

pull/85/head
13621160019@163.com 2021-09-07 18:25:28 +08:00
parent 74ee2a9eba
commit eed6617264
1 changed files with 1 additions and 0 deletions

1
web/nginx.conf vendored
View File

@ -33,6 +33,7 @@ http {
location / {
root /var/www/html/web;
index index.html index.htm;
# add try_files directive to avoid 404 error while refreshing pages
try_files $uri /index.html;
}