Re:Re: how to do multi-domain

From: null <iqnode#163.com>
Date: Thu, 11 Jun 2009 09:32:40 +0800 (CST)


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 <germish#gmail.com> дµÀ£º

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 Received on 2009/06/11 03:32

This archive was generated by hypermail 2.2.0 : 2009/06/11 03:45 CEST