Is http keep-alive effective with different domain on the same webserver?
问题 On the same nginx/apache server: Scene 1: a.test.com and b.test.com can use keep-alive? Scene 2: localhost and 127.0.0.1 can use keep-alive? or the "Host header" must be consistent and the keep-alive will effective? 回答1: For Apache it looks like it's based on IP address rather than host header, though I guess it also very much depends on client implementation. https://httpd.apache.org/docs/2.4/vhosts/details.html#hostmatching Persistent connections The IP lookup described above is only done