This is exactly what I'm looking for, thanks!
I was looking at the variables in Section 7.3 as I didn't think there
would be a dedicated directive for this. Apparently I was wrong :)

Regards,
  Dennis

On 12.05.2016 18:48, Mehdi Ahmadi wrote:
> It may be that your after:
> ```
> http-send-name-header X-CustomHeader
> ```
> Which would set the ID of the selected server into the header
> `X-CustomHeader`.
> See the documentation for further details.
> http://cbonte.github.io/haproxy-dconv/configuration-1.5.html
> 
> 
> 
> On Thu, May 12, 2016 at 6:29 PM, Dennis Jacobfeuerborn <
> denni...@conversis.de> wrote:
> 
>> Hi,
>> I'm wondering if there is a way to add the name of the server chosen for
>> the request as a request header i.e. if the following server is chosen
>> for the request:
>>
>> server back1 10.1.0.10:8080 check inter 20000
>>
>> then I'd like to receive this header on the 10.1.0.10 system:
>>
>> X-CustomHeader: back1
>>
>> Is this possible?
>>
>> Regards,
>>   Dennis
>>
>>
> 


Reply via email to