It’s really unclear. I guess you mean you are installing haproxy in front of another outgoing proxy like Squid so that haproxy is configured as the proxy in the browser, is that it ? But in this case why would you have 3 different hosts on 3 different ports ?
Also, you need to use “mode http” in your frontends and backends (or place that in a “defaults” section), otherwise the connections are forwarded in TCP without waiting for the request, and here you’ll end up failing to connect and directly closing in the face of the client, which might explain the error you’re receiving.
yup, i did the defaults section but not in copy that. Sorry for the unclear.
I have 3 website that can be access only by set the windows proxy into my ip and ports. The problem comes when i want to access internet like youtube, google, etc. I have to turn off the proxy setting first and i can watch the youtube. Is there any solution for that?
Then you’re not using the right tool. Haproxy is a reverse proxy, not a forward proxy. Even using it like this in your browser will not work for SSL sites because your browser will send a CONNECT request that haproxy will forward to the server and that the server will not understand. You need to use a forward proxy to do what you describe. Squid ( http://squid-cache.org/ ) is the best known one, but there are others.