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;
}
————————————————
亲测有效
vue项目部署在nginx 上刷新页面 报404 (已解决)
location / { root/usr/local/app/rsti/rsti-web/; indexindex.html index.htm; try_files $uri $uri/ @router; index ...
·
转载于:https://my.oschina.net/u/2428630/blog/3097163
更多推荐
已为社区贡献1条内容
所有评论(0)