Hi, Following is the what I am trying to set up:
a.com and b.com are two secure domains a.com servers are a1,a2,a3 b.com servers are b1,b2,b3 https requests coming in for a.com should be redirected to a1,a2,a3 https requests coming in for b.com should be redirected to b1,b2,b3 So what I tried in order to achieve this , is following: Stunnel accepting SSL requests on 443 and redirecting to 80 on HAproxy . HAproxy in turn depending on header redirects the request to the approriate server . Lets say if domain header is "a.com" it should be redirected to a1,a2 or a3 server on port 443. I think it does redirect to one of the a1,a2,a3 server but gives "Bad gateway" 502 error as response. Can anybody tell me whether its possible to achieve the above requirement in HAproxy ? Thank you. -Paras On Tue, Sep 15, 2009 at 4:32 PM, Paras Fadte <[email protected]> wrote: > Thank you for your response Bernhard. > > On Mon, Sep 14, 2009 at 4:06 PM, Bernhard Krieger <[email protected]> wrote: >> Under SSL and TLS, all HTTP headers are encrypted including the host header. >> >> >> If you use stunnel on the Loadbalancer, the stunnel forward the requests in >> clear text ( http ) to the local listening haproxy. >> Then it is possible to redirect/forward the requests based on the host >> headers... >> >> >> bye >> Bernhard >> >> ----- Nachricht von [email protected] --------- >> Datum: Mon, 14 Sep 2009 13:57:42 +0530 >> Von: Paras Fadte <[email protected]> >> Antwort an: Paras Fadte <[email protected]> >> Betreff: Redirecting based on host header for HTTPS requests >> An: [email protected] >> >> >>> Hi , >>> >>> Is it possible in HAproxy to redirect https requests based on the host >>> header ? >>> >>> Thank you. >>> >>> -Paras >>> >>> >> >> >> ----- Ende der Nachricht von [email protected] ----- >> >> >> >> ---------------------------------------------------------------- >> This message was sent using IMP, the Internet Messaging Program. >> >> >

