The files I packaged after npm run build are placed under the nginx server. They can be accessed using localhost, but cannot be accessed using localhost/index.html. Please help. What is the problem?
高洛峰2017-05-19 10:36:10
Add on nginx
location / {
#这个地方指定被访问的文件夹位置
root /data/test;
index index.html index.htm;
}
Try it