RE: http-response add-header

2018-06-25 Thread mlist
ion in reliance on it. If you have received this email in error, please notify the sender and delete this email from your system. -Original Message- From: Aleksandar Lazic Sent: lunedì 25 giugno 2018 11:40 To: mlist ; 'Jarno Huuskonen' Cc: 'haproxy@formilux.org' Subject: Re: ht

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/acl. For example

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'

Re: http-response add-header and stats enable

2015-08-17 Thread Baptiste
On Mon, Aug 17, 2015 at 9:54 AM, Lukas Erlacher erlac...@in.tum.de wrote: Hello, I'm a new haproxy user (using haproxy 1.5) and I'm running into a few hitches. I made a stats backend: backend bk_stats log global mode http stats enable stats uri /

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?