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.