Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We currently have a HAProxy set up that splits the load over two backend servers and it reads/sets a cookie accordingly so you stay on the same server throughout the process.

However, we now have a problem.. we have added more domains to the server and as the cookie is set per domain all of the other domains are ignoring it and are picking a random server on each request.

We have tried doing

cookie        PROXYSERVERID insert indirect nocache domain .domain1.com domain .domain2.com 

But this just causes it to set the cookie on the second domain and ignores the first.



share|improve this question

1 Answer 1

Can you use the ACL to set cookies based on the Host header? For example, setup a backend per domain, and pass in the correct cookie in each backend.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.