首頁 > 問答 > 主體
我npm run build之後打包的檔案放在nginx伺服器下,用localhost可以訪問,用localhost/index.html就無法訪問,求助這是什麼問題啊
高洛峰2017-05-19 10:36:10
在nginx上加上
location / { #这个地方指定被访问的文件夹位置 root /data/test; index index.html index.htm; }
試試看