Bryan thanks, I read these "hdr_reg , .....it is important to remember that 
regex matching is slower than other methods........" in the 
"http://haproxy.1wt.eu/download/1.3/doc/configuration.txt";. What about 
"hdr_dom" on efficiency?


在2009-06-10,Bryan <[email protected]> 写道:

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

Reply via email to