Re: 1.6 vs 1.5 http-request add-header format

2016-07-21 Thread haproxy
Thank you very much Cyril! req.fhdr() did the trick! > Le 20/07/2016 à 11:48, hapr...@abisoft.biz a écrit : >> Sure thing. Here is the full config (Haproxy 1.6.7): >> >> [...] >> defaults >> mode http >> [...] >> log-format %ci:%cp\ [%t]\ %ft\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %tsc\ >>

Re: 1.6 vs 1.5 http-request add-header format

2016-07-20 Thread Cyril Bonté
Hi, Le 20/07/2016 à 11:48, hapr...@abisoft.biz a écrit : Sure thing. Here is the full config (Haproxy 1.6.7): [...] defaults mode http [...] log-format %ci:%cp\ [%t]\ %ft\ %b/%s\ %Tq/%Tw/%Tc/%Tr/%Tt\ %tsc\ %ac/%fc/%bc/%sc/%rc\ %sq/%bq\ %{+Q}r\ %ST\ "%CC"\ "%hr"\ "%CS"\ "%hs"\

Re: 1.6 vs 1.5 http-request add-header format

2016-07-20 Thread haproxy
Sure thing. Here is the full config (Haproxy 1.6.7): global log 127.0.0.1:514 local0 chroot /var/lib/haproxy pidfile /var/run/haproxy.pid maxconn 25000 # 33KB per established connection; raise after upgrading instance type userhaproxy group

Re: 1.6 vs 1.5 http-request add-header format

2016-07-19 Thread Cyril Bonté
Hi again, Le 19/07/2016 à 14:45, hapr...@abisoft.biz a écrit : Hi, The following construction worked in 1.5.4 and doesn't work in 1.6.7: http-request add-header X-Haproxy-ACL %[req.fhdr(X-Haproxy-ACL,-1)]over-3-connections-in-10-seconds, if { src_conn_rate gt 3 } while the one w/o the comma

1.6 vs 1.5 http-request add-header format

2016-07-19 Thread haproxy
Hi, The following construction worked in 1.5.4 and doesn't work in 1.6.7: http-request add-header X-Haproxy-ACL %[req.fhdr(X-Haproxy-ACL,-1)]over-3-connections-in-10-seconds, if { src_conn_rate gt 3 } while the one w/o the comma in the end works in 1.6.7 well: http-request add-header