Updating ACL without reseting stats

From: Laurent DOLOSOR <laurent#dinhosting.fr>
Date: Mon, 10 Aug 2009 13:56:35 +0200


Hello,

I'd like use ACL in order to redirect request on one or other backend. But ACL will often change (a lot of time per day, with new matches or changing redirection for the same match).

Is it possible to say to Haproxy ACL changes and reload them without cleaning stats ?

Specifically, i want to have backend with differents versions of PHP (like php4, php5, php6) and switch between them for a domain name.

Something like

   acl domain1 hdr_dom(host) -i domain1.com www.domain1.com
   acl domain2 hdr_dom(host) -i domain2.com www.domain2.com
   acl domain3 hdr_dom(host) -i domain3.com www.domain3.com
   acl domain4 hdr_dom(host) -i domain4.com www.domain4.com

   use_backend PHP5 if domain1 or domain2    use_backend PHP6 if domain3
   default_backend PHP5

Maybe there is a better way ?

Thanks in advance,

Laurent Received on 2009/08/10 13:56

This archive was generated by hypermail 2.2.0 : 2009/08/10 14:00 CEST