Re: cookie domain set based on request

From: Baptiste <>
Date: Tue, 29 Nov 2011 22:58:05 +0100


what you want to do is not doable. I mean taking a piece of the host header and inserting it into the Set-Cookie header. How have you currently setup your persistence in HAProxy? do you have any application cookie that would stay constant despite the domain browsed and we could rely on to ensure persistence?


On Tue, Nov 29, 2011 at 10:20 PM, Allan Wind <> wrote:
> I would like to set the cookie domain to the top level domain of
> the request.  This is not currently possible, right?  For example
> if the request is:
> Host: www.tld
> haproxy should behaves as if this configuration was set in the
> haproxy config file:
> cookie ... domain=.tld
> In this case I have 100s of domains on the backend so I cannot
> just list them out.  We redirect to sub-domains and are seeing
> clients spread requests over all backends instead of respecting
> the cookie based persistence.
> /Allan
> --
> Allan Wind
> Life Integrity, LLC
> <>
Received on 2011/11/29 22:58

This archive was generated by hypermail 2.2.0 : 2011/11/29 23:00 CET