From 0ca38136b492a521a7be06bf4ddec4f421ababdf Mon Sep 17 00:00:00 2001 From: "13621160019@163.com" <13621160019@163.com> Date: Wed, 8 Sep 2021 14:42:42 +0800 Subject: [PATCH] updated README of Web UI --- web/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/README.md b/web/README.md index 57493eca..d275b7c6 100644 --- a/web/README.md +++ b/web/README.md @@ -87,6 +87,8 @@ Add a new 'server' section with direstives as below: 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; } -- To avoid CORS issue, use Nginx to proxy myems-api to path /api -- Add another location /api in 'server ', replace demo address http://127.0.0.1:8000/ with actual url