We are in the process of converting most of our HAProxy usage to be http
balanced (instead of TCP).
In our lab we are using stunnel to decrypt our https traffic to http
which then gets piped to haproxy. We also have a load balanced session
service that stunnel/HAProxy also serves which uses uses cookies for our
sessions (the session service generates/maintains the cookies).
Whenever we are using stunnel/HAProxy to decrypt and balance our session
service, something bad seems to happen to the session cookie and our
session service returns an error. If we use just straight http
balancing without stunnel in the loop, our session service works fine.
Also, if we just use HAProxy and tcp balancing, our session service
works fine (the current way our production service works).
What gives is there some special config in HAProxy or stunnel that I am
missing?
Thanks.