不需要刻意分流,可以通过 DNS 将多个主机做一样的配置挂在一个域名后面- $ dig www.a.shifen.com; <<>> DiG 9.10.6 <<>> www.a.shifen.com;; global options: +cmd;; Got answer:;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51851;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1;; OPT PSEUDOSECTION:; EDNS: version: 0, flags:; udp: 4096;; QUESTION SECTION:;www.a.shifen.com. IN A;; ANSWER SECTION:www.a.shifen.com. 248 IN A 110.242.68.4www.a.shifen.com. 248 IN A 110.242.68.3;; Query time: 98 msec;; WHEN: Thu Oct 07 22:37:06 CST 2021;; MSG SIZE rcvd: 77
复制代码 |