Re: How to pass “Host” header from client request to backend server

2016-02-20 Thread Carolina Simões Gomes
I solved this, the solution was to add "capture header host" in haproxy.cfg and get the host header info from stream->req_cap array. [Carolina Gomes] PhD Student University of Toronto +1 (416) 931-4774 On Mon, Feb 15, 2016 at 2:58 PM, Carolina Simões Gomes < carolina.sgo...@

How to pass “Host” header from client request to backend server

2016-02-15 Thread Carolina Simões Gomes
Hello, First-timer on the mailing list :-) Below is my question. I created a custom HAProxy load balancing code, that instead of using one of the default algorithms such as round robin, calls a webservice that decides which server to route to. I call from haproxy C code to the webservice using