LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   NginX [error] upstream prematurely closed connection while reading reading response (https://www.linuxquestions.org/questions/linux-server-73/nginx-%5Berror%5D-upstream-prematurely-closed-connection-while-reading-reading-response-4175468215/)

kingkashif 07-02-2013 02:01 PM

NginX [error] upstream prematurely closed connection while reading reading response
 
Hi guys,

I have run into an odd problem on my nginx server which I am unable to solve. I have searched almost everything on the google but nothing seems to be specific to my problem or just doesn't solve it for me.

When I try to execute my php script, after few seconds it gives me the 502 Bad Gateway.

While in the nginx error log the following line is logged.

Quote:

2013/07/02 20:48:17 [error] 23240#0: *14469 upstream prematurely closed connection while reading response header from upstream, client: XXX.XXX.XX.XXX, server: abc.com, request: "POST /members/admin/useradd.php HTTP/1.1", upstream: "http://XX.XX.XXX.XX:7080/members/admin/useradd.php", host: "abc.com", referrer: "http://abc.com/members/admin/useradd.php?userid=150"
Any help would be highly appreciated.

Thanks in advance. :)

kingkashif 07-03-2013 04:56 AM

I hate being a pest but I would really appreciate if anyone could shed some light on in this issue ? :S

nico34 07-20-2013 04:37 PM

can you post your nginx config file, also can you check if the php script is using some kind of port and that its running also what process thus this php script trying to run?


All times are GMT -5. The time now is 12:27 PM.