首页 > 问答 > 正文
我npm run build之后打包的文件放在nginx服务器下,用localhost可以访问,用localhost/index.html就无法访问,求助这是什么问题啊
高洛峰2017-05-19 10:36:10
在nginx上加上
location / { #这个地方指定被访问的文件夹位置 root /data/test; index index.html index.htm; }
试试看