两边都是容器启动的 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;
有没有大神解惑~
同一个域名的配置文件,域名部分配置如下
server_name a.example.com,b.example.com;
同样内容 copy 到另一台同样版本的 nginx 集群后,发现 curl a.example.com 找不到域名
最后修改配置成这样就可以了
server_name a.example.com;
server_name b.example.com;
有没有大神解惑~