Miguel C.
July 23, 2013 08:10PM
The log tells you much... although has was already said the problem is that something's wrong with whatever should be listening on those ports...

Openerp is one of those and probably is not running or at least it's not listening on the port specified in nginx configuration...

In any case the problem is not in nginx... find out what is supposed to be listening on those ports... I doubt you will have problems with nginx after that.



Nikolas Stevenson-Molnar <nik.molnar@consbio.org> wrote:
>"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

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Not listing proxy_pass port 8009

imran_kh July 23, 2013 12:39PM

Re: Not listing proxy_pass port 8009

B.R. July 23, 2013 12:58PM

Re: Not listing proxy_pass port 8009

dbradfield July 23, 2013 01:04PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 02:45PM

Re: Not listing proxy_pass port 8009

Miguel C. July 23, 2013 02:58PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 03:20PM

Re: Not listing proxy_pass port 8009

Jonathan Matthews July 23, 2013 04:34PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 07:41PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 08:02PM

Re: Not listing proxy_pass port 8009

Miguel C. July 23, 2013 08:10PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 08:20PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 08:32PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 08:44PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 09:16PM

Re: Not listing proxy_pass port 8009

imran_kh July 23, 2013 09:36PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 23, 2013 10:00PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 03:19PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 24, 2013 03:38PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 04:36PM

Re: Not listing proxy_pass port 8009

Nikolas Stevenson-Molnar July 24, 2013 06:00PM

Re: Not listing proxy_pass port 8009

imran_kh July 24, 2013 05:50PM

Re: Not listing proxy_pass port 8009

naseeb0077 July 24, 2013 08:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready