correct upstream configuration for php-fpm?

Ilan Berkner iberkner at
Sun Sep 13 19:00:15 MSD 2009

this is what i have:

upstream handlephp

  location ~ \.php$
    include fcgi;
    fastcgi_pass http://handlephp;

This gives configuration error of: invalid upstream in host, on the
fastcgi_pass line.  When I change it to: proxy_pass http://handlephp, I
don't get the configuration error but the website gives a "bad gateway
error".  I tried it with the single local entry only ( and it
didn't help.  Is my syntax wrong?  Am I missing any directives?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list