RE: http-response add-header

2018-06-25 Thread mlist
25 giugno 2018 09:01 > To: mlist mailto:ml...@apkappa.it>> > Cc: 'haproxy@formilux.org' mailto:haproxy@formilux.org>> > Subject: Re: http-response add-header > > Hi, > > On Sat, Jun 23, mlist wrote: >> using this config no header is added to client fro

RE: http-response add-header

2018-06-25 Thread mlist
u have received this email in error, please notify the sender and delete this email from your system. -Original Message- From: Jarno Huuskonen Sent: luned? 25 giugno 2018 09:01 To: mlist Cc: 'haproxy@formilux.org' Subject: Re: http-response add-header Hi, On Sat, Jun 23, mlist wrote: &

Re: http-response add-header

2018-06-25 Thread Jarno Huuskonen
Hi, On Sat, Jun 23, mlist wrote: > using this config no header is added to client from haproxy: > > acl is_test hdr_dom(host) -i www.url1.url2.com > > http-response add-header X-Custom-Header YES if is_test Most likely the host header is not available for the http-response/ac

http-response add-header

2018-06-23 Thread mlist
Hi, haproxy 1.8.10 using this config no header is added to client from haproxy: acl is_test hdr_dom(host) -i www.url1.url2.com http-response add-header X-Custom-Header YES if is_test We are sure “acl is_test hdr_dom(host) -i www.url1.url2.com<http://www.url1.url2.com>” is match

Issue with http-response add-header and ACLs

2015-10-01 Thread CJ Ess
So I am trying to set some new rules - since I don't have anything hand to echo requests back to me, I'm using http-response add-header so I can verify my rules work with curl. Added to haproxy.cfg: acl test_origin hdr(X-TEST-IP) -m ip -f /etc/haproxy/acl/test.acl http-response add-header X

Re: Issue with http-response add-header and ACLs

2015-10-01 Thread Cyril Bonté
Hi, Le 01/10/2015 20:56, CJ Ess a écrit : So I am trying to set some new rules - since I don't have anything hand to echo requests back to me, I'm using http-response add-header so I can verify my rules work with curl. Added to haproxy.cfg: acl test_origin hdr(X-TEST-IP) -m ip -f /etc

Re: Issue with http-response add-header and ACLs

2015-10-01 Thread CJ Ess
ew rules - since I don't have anything hand >> to echo requests back to me, I'm using http-response add-header so I can >> verify my rules work with curl. >> >> Added to haproxy.cfg: >> >> acl test_origin hdr(X-TEST-IP) -m ip -f /etc/haproxy/acl/test.acl >>

Re: http-response add-header and stats enable

2015-08-19 Thread Baptiste
On Mon, Aug 17, 2015 at 10:35 AM, Lukas Erlacher erlac...@in.tum.de wrote: Hi Lukas, Actually, you're setting response headers with data available only at the request time. This is not possible in HAProxy 1.5 This will be possible in HAProxy 1.6 using the capture statement. Baptiste

Re: http-response add-header and stats enable

2015-08-19 Thread Lukas Erlacher
Hi, On 08/19/2015 05:21 PM, Baptiste wrote: Hi, thanks for that info. Is there any way to make haproxy tell me these things? Luke Hi Luke, As I said, with the capture statement: http://cbonte.github.io/haproxy-dconv/snapshot/configuration-1.6.html#http-request Look for 'capture'

http-response add-header and stats enable

2015-08-17 Thread Lukas Erlacher
wanted to have users authed by ssl client certificate, I put some http-response add-header statements into the frontend for debugging: frontend ft_stats log global mode http bind 131.159.42.4:443 ssl crt myserver.combined.key.pem ca-file mycafile.pem verify required no-sslv3

Re: http-response add-header and stats enable

2015-08-17 Thread Baptiste
/ stats scope ft_submission stats scope bk_postfix And because I wanted to have users authed by ssl client certificate, I put some http-response add-header statements into the frontend for debugging: frontend ft_stats log global mode http bind 131.159.42.4

Re: http-response add-header and stats enable

2015-08-17 Thread Lukas Erlacher
Hi Lukas, Actually, you're setting response headers with data available only at the request time. This is not possible in HAProxy 1.5 This will be possible in HAProxy 1.6 using the capture statement. Baptiste Hi, thanks for that info. Is there any way to make haproxy tell me these things?