加入 include /usr/www/ngconfs/*.conf;
读取ngconfs文件下所有 *.conf文件

nginx 80 端口 部署多个Web

2.ngconfs 下多个文件创建

第二步骤主要在于  监听80端口  

网站背后对应实际网站问端口4302,从而实现公用80端口 部署多个网站

location / {
  proxy_pass http://localhost:4302/;
}

nginx 80 端口 部署多个Web

3.重启nginx    输入命令nginx -s reload

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-01
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2021-07-01
猜你喜欢
  • 2022-01-19
  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
相关资源
相似解决方案