nginx upstream prematurely closed connection

217 views
Skip to first unread message

Ramy Allam

unread,
Mar 29, 2012, 11:51:31 AM3/29/12
to ng...@nginx.org
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.11
Apache/2.2.22
PHP 5.2.17

Thanks

Maxim Dounin

unread,
Mar 30, 2012, 8:01:23 AM3/30/12
to ng...@nginx.org
Hello!

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 Dounin

_______________________________________________
nginx mailing list
ng...@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Reply all
Reply to author
Forward
0 new messages