The easiest way would be to assign these sites with different IP addresses and then have a listener for each IP:80. I'm not sure if that's an option for you. If not, you can probably create some ACL for it, like the untested snippet I have below:
acl test1-site hdr_reg(host) (www.)?test1.com acl test2-site hdr_reg(host) (www.)?test2.com --Bryan 2009/6/10 iqnode <[email protected]>: > Hi, > How can I do multi domains on one haproxy server? I have two domain like > as: > a. wwww.test1.com > b. www.test2.com > I do not want to use the different ports to distinguish. > Thanks in advanced. > > > > > ________________________________ > 网易企业邮,商务邮箱专家

