Achilless
V2EX  ›  问与答

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

  •  
  •   Achilless · Nov 18, 2022 · 568 views
    This topic created in 1313 days ago, the information mentioned may be changed or developed.
    两边都是容器启动的 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;

    有没有大神解惑~
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3176 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 12:37 · PVG 20:37 · LAX 05:37 · JFK 08:37
    ♥ Do have faith in what you're doing.