nginx部署前端

在server里面 配置对应的前端路径

location / { 
root /usr/local/nginx/html/dist;
index index.html inden.htm;
}

  


重新加载配置文件

cd /usr/local/nginx/sbin
./nginx -s reload

  

原文地址:https://www.cnblogs.com/heshaoye/p/12872765.html