location / {
root /usr/local/app/rsti/rsti-web/;
index index.html index.htm;
try_files $uri $uri/ @router;
index index.html;
}
location @router {
rewrite ^.*$ /index.html last;
}
————————————————
亲测有效
转载于:https://my.oschina.net/u/2428630/blog/3097163