ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

nginx部署vue包dist,页面刷新后,提示“404 Not Found”

nginx部署vue包dist,页面刷新后,提示“404 Not Found” nginx-1.9.10错误截图如下处理方法在指定的位置添加下面代码即可location / {root E:/workspace/dists/dist;index index.html index.htm;# 解决页面刷新后报404的问题try_files $uri $uri/ /index.html;}重启nginx就正常了。如果还是无法正常访问可能与权限有关改下面地方
返回列表