2014-09-03 11:36 GMT+02:00 Baptiste <bed...@gmail.com>: >>> >>> >>> Hi, >>> >>> >>> it's working now with the following "workaround" (config simplified): >>> >>> >>> >>> frontend http_in_01 >>> >>> bind 0.0.0.0:80 >>> >>> http-request set-header X-Concat >>> %[req.fhdr(User-Agent)]_%[req.fhdr(host)] >>> >>> acl is_found req.fhdr(X-Concat) -m found >>> http-request set-header X-Found yes if is_found >>> >>> default_backend forward >>> >>> >>> backend forward >>> >>> server localhost 127.0.0.1:4444 >>> >>> >>> frontend internal_real >>> >>> bind 127.0.0.1:4444 >>> >>> stick-table type string len 180 size 32m expire 1m store >>> http_req_rate(10s) >>> >>> tcp-request inspect-delay 10s >>> tcp-request content track-sc0 req.fhdr(X-Concat) if HTTP >>> >>> default_backend live-nodes >>> >>> >>> backend live-nodes >>> >>> server apache01 127.0.0.1:8090 check inter 2s rise 2 fall 2 >>> maxconn 250 weight 50 >>> >>> >>> >>> This is the same "workaround" that is used here for logging purposes: >>> >>> https://github.com/jvehent/haproxy-aws/blob/master/haproxy.cfg >>> >>> >>> >>> >>> It seems that if you add a new/custom header in frontend, it is >>> available to ACL's in the same frontend (acl is_found is matched), but >>> not to stick-table tracking functionality. >>> >>> >>> Is this by design and intended behaviour ? >>> >>> >>> >>> ----------- >>> Bjoern >> >> >> Hi, >> >> does anyone know if this is by design and intended behaviour ? >> >> >> ----------- >> Bjoern >> > > Hi Bjoern, > > add a 'http-request track-sc0 (.....)' in your frontend and it should work. > Note this feature is only available in 1.6. > > Baptiste
Hi Baptiste, very cool, it's working now with 1.6 and "http-request track-sc*" If i haven't missed something its not yet in 1.6 documentation. Thanks, ----------- Bjoern