V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Achilless
V2EX  ›  问与答

nginx 配置迁移遇到的一个奇怪问题

  •  
  •   Achilless · 2022 年 11 月 18 日 · 470 次点击
    这是一个创建于 1249 天前的主题,其中的信息可能已经有所发展或是发生改变。
    两边都是容器启动的 nginx 集群,版本和镜像一样
    同一个域名的配置文件,域名部分配置如下

    server_name a.example.com,b.example.com;

    同样内容 copy 到另一台同样版本的 nginx 集群后,发现 curl a.example.com 找不到域名
    最后修改配置成这样就可以了

    server_name a.example.com;
    server_name b.example.com;

    有没有大神解惑~
    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   1113 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 18:09 · PVG 02:09 · LAX 11:09 · JFK 14:09
    ♥ Do have faith in what you're doing.