nginx upstream prematurely closed connection

Ramy Allam linux at
Thu Mar 29 15:51:31 UTC 2012

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list