当前位置 主页 > 服务器问题 > nginx问题汇总 >

    nginx部署多个Web在80端口如何部署?

    栏目:nginx问题汇总 时间:2018-12-03 16:06

      1.修改默认nginx.conf 文件
      加入 include /usr/www/ngconfs/*.conf;
      读取ngconfs文件下所有 *.conf文件
      2.ngconfs 下多个文件创建
      第二步骤主要在于  监听80端口
      网站背后对应实际网站问端口4302,从而实现公用80端口 部署多个网站
      location / {
      proxy_pass http://localhost:4302/;
      }
      3.重启nginx    输入命令nginx -s reload