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\
>>
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"\
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
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
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
5 matches
Mail list logo