Thanks for your answer However, I removed the "mode tcp" line from the frontend block and I still have the same issue.
Do you have any other ideas ? Thanks On Mon, Apr 30, 2012 at 11:20 PM, Baptiste <bed...@gmail.com> wrote: > On Mon, Apr 30, 2012 at 3:17 PM, Francois-Guillaume Ribreau > <francoisguillaume-ribr...@fgribreau.com> wrote: > > On the main page of my website multiple http requests are made on > different > > domains (brin.gr, static.brin.gr and gateway.brin.gr). > > Sometimes everything's fine, sometimes the http request to > gateway.brin.gr > > returns 502. > > > > I've started HAProxy in debug mode and found out that the 502 error occur > > when the request is done on the wrong backend (the request is done on > > default backend "nginx" instead of "gateway"), > > see http://pastebin.com/yHHkJpcX. > > > > So it seems to be a configuration issue. FYI Gateway.brin.gr is process > that > > act as an http server and a websocket server and runs on the local port > > 8080. > > > > Here is the configuration file: http://pastebin.com/ddmDzZLG > > > > You can try accessing http://brin.gr by yourself and see that sometimes > the > > request gateway.brin.gr will throw a 502 error. > > > > What did I do wrong ? > > > > Thanks a lot for your time. > > Hi, > > It may be due because your frontend is in TCP mode and I'm almost sure > that HTTP acls will always return 0. > Maybe Willy will confirm, or not :) > > cheers > -- Francois-Guillaume Ribreau [image: LinkedIn] <http://www.linkedin.com/in/francoisguillaumeribreau> <http://www.doyoubuzz.com/francois-guillaume-ribreau> [image: Twitter] <http://twitter.com/FGRibreau> [image: Site] <http://fgribreau.com/> <http://www.viadeo.com/fr/profile/francois-guillaume.ribreau> [image: Blog] <http://blog.fgribreau.com/>