7万
861
32万
论坛元老
vue打包项目后刷新404的问题Nginx配置
server { listen 80; server_name localhost; index index.html; root /root/dist; location / { root /root/dist; try_files $uri $uri/ /index.html =404; } }
以上这篇解决vue打包项目后刷新404的问题就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持脚本之家。
使用道具 举报
4
2万
303
中级会员
316
0
13
85
注册会员
1万
2
146
60
1
207
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|网站地图|源码论坛 ( 海外版 )
GMT+8, 2025-2-7 04:44 , Processed in 0.076697 second(s), 24 queries .
Powered by Discuz! X3.4
Copyright © 2001-2020, Tencent Cloud.