Nginx部署Vue项目刷新页面404

编辑配置文件nginx.conf,添加一条配置

location / {
root ...
index ...
\#解决页面刷新404问题
try_files $uri $uri/ /index.html;
}

参考链接
https://blog.csdn.net/qq_27985607/article/details/86608392

发布了39 篇原创文章 · 获赞 47 · 访问量 4896

猜你喜欢

转载自blog.csdn.net/qq_42520112/article/details/102843306