location / {
add_header Access-Control-Allow-Origin *;
root /data/static_project/dist;
try_files $uri $uri/ /index.html;
index index.html;
expires 30d;
}
解决Nginx部署Vue项目第一次访问正常第二次访问404的问题
猜你喜欢
转载自blog.csdn.net/weixin_44953658/article/details/132554813
今日推荐
周排行