I have a Server that runs haproxy to redirect incoming traffic to the correct process based on the subdomain. haproxy is configured to use different SSL certificates depending on the subdomain.
The configuration works, however sometimes (quite often though), haproxy serves the wrong certificate (it serves the certificate of another subdomain). I have to refresh the page multiple times in order to get the correct one.
I don’t know if it’s more probable, but it looks like haproxy is not getting the correct subdomain in the request
Here is my haproxy configuration: http://pastebin.com/WZhd2e52