multiserver stup http proxy: 502 bad gateway nginx
I have just setup a new multiserver environment. I got everything working for the most part except for the web proxy. I have followed several guides in the wiki and the official 7.2 admin guide but i can not get consistent results from the setup. Sometimes is works other times (80 to 90%) i get the 502 bad gateway error. What could i be doing wrong.
This is what the ngnix log says:
2012/05/07 23:42:18 [error] 21077#0: *166 connect() failed (111: Connection refused) while connecting to upstream, client: 22.214.171.124, server: , request: "GET / HTTP/1.1", upstream: "http://[0:0:0:0:0:0:0:1]:80/", host: "mail.example.com"
Release 7.2.0_GA_2669.RHEL6_64_20120410002025 CentOS6_64 FOSS edition.