"502 Bad Gateway" almost always means something is wrong with the upstream server (i.e., Nginx is working fine, whatever it's proxying to is having problems) so look for a problem there.
_Nik On 7/23/2013 4:41 PM, imran_kh wrote: > Hello, > > Thanks for the reply, > > Actually openerp is also hosted on this server. Is this create “502 bad > gateway” error? Please find the error log and suggest me on this. > > #openerp-error.log > 2013/07/23 18:21:15 [error] 1465#0: *196 connect() failed (111: Connection > refused) while connecting to upstream, client: 10.10.10.10, server: pqr.com, > request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:8002/", host: > "pqr.com" > > #error.log > 2013/07/23 18:21:16 [error] 1465#0: *198 connect() failed (111: Connection > refused) while connecting to upstream, client: 10.10.10.10, server: abc.com, > request: "GET / HTTP/1.0", upstream: "http://127.0.0.1:8007/", host: > "abc.com" > > Thanks, > Imran Khan. > > Posted at Nginx Forum: > http://forum.nginx.org/read.php?2,241157,241168#msg-241168 > > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx