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