Hello,
I’m using nginx as a reverse proxy to handle static files with apache to
handle dynamic file .php
I’m receiving too many errors ( Bad Gateway 502 ) when i’m using
vBulletin , joomla , wordpress in PHP Post or curl() inside php.
I reviewed log i noticed this error is frequently appears:
“upstream prematurely closed connection while reading response header
from upstream”
Nginx version: nginx/1.0.11Apache/2.2.22PHP 5.2.17
Thanks
Hello!
On Thu, Mar 29, 2012 at 03:51:31PM +0000, Ramy Allam wrote:
Hello,
I’m using nginx as a reverse proxy to handle static files with apache to handle
dynamic file .php
I’m receiving too many errors ( Bad Gateway 502 ) when i’m using vBulletin ,
joomla , wordpress in PHP Post or curl() inside php.
I reviewed log i noticed this error is frequently appears:
“upstream prematurely closed connection while reading response header from
upstream”
Nginx version: nginx/1.0.11Apache/2.2.22PHP 5.2.17
Thanks
Such messages usually appear due to upstream server crash and/or
process termination due to some limits (memory, cpu, execution
time…). Try looking into apache logs and/or system logs to see
what happens.
Maxim D.
This is also proxy log, not the static content request log.
You should be sure you have enough resources in your backend server,
like memory, connection…
2012/4/9 Tariq wali [email protected]:
Maxim,
I see the same error on few of our lamp servers and nginx serving static
content .
I have looked for clues in apache error logs and syslog messages but
can’t establish a connection …
2012/03/21 00:00:01 [error] 569#0: *10867863 upstream prematurely closed
connection while reading response header from upstream, client:
121.243.22.130, server: _, request: “GET / HTTP/1.1”, upstream:
“http://127.0.0.1:8080/”, host: “servername.net”
2012/03/22 00:00:01 [error] 568#0: *10869967 upstream prematurely closed
connection while reading response header from upstream, client:
121.243.22.130, server: _, request: “GET / HTTP/1.1”, upstream:
“http://127.0.0.1:8080/”, host: “servername.net”
2012/03/23 00:00:01 [error] 569#0: *10872221 upstream prematurely closed
connection while reading response header from upstream, client:
121.243.22.130, server: _, request: “GET / HTTP/1.1”, upstream:
“http://127.0.0.1:8080/”, host: “servername.net”
I would appreciate a direction I can take this issue in …’
T