On 2011-09-01 01:06, Leigh Dyer wrote:
Hi,
Hello,
I'm currently using a cookie to handle sticky sessions in my haproxy
setup, but I'm having trouble setting the domain on the cookie. For most
cases, I need to hardcode the cookie so that it applies across our main
domain and any subdomains, like so:
cookie BACKENDID insert indirect domain .domain.com
However, we have some sites that are on completely different domains,
and at the moment that results in them not having a cookie set at all,
since the browsers are rejecting this cookie due to the domain name
mismatch.
Is there a way that I can set the cookie's domain dynamically to handle
both of these cases?
How many different domains you need to handle? You can have several,
identical backends, each one dedicated for subdomains from one domain.
Best regards,
Krzysztof Olędzki