前言
nginx如何部署打包成为dist的前端项目。读者须知: nginx如何安装与使用
PS
docker 安装与使用
docker pull nginxdocker run --restart=on-failure:20 -itd --name nginx -p 80:80 nginx:latest
SEO
nginx如何部署dist?
 nginx如何部署vue?
 nginx如何部署前端项目?
安装nginx后,配置
该文件放在/etc/nginx/conf.d/xxx.conf
server{
    listen 80;
    server_name  xxx.com;
    location /{
        root /home/web/vueProjects/wxopapp/dist/;
        index index.htm index.html;
        expires      30d;
    }
}nginx -tnginx -s reload
                










