Welcome! Log In Create A New Profile

Advanced

correct upstream configuration for php-fpm?

September 13, 2009 11:06AM
this is what i have:

upstream handlephp
{
server 127.0.0.1:9000;
server 192.168.1.3:9000;
}

server
{
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 (127.0.0.1) and it
didn't help. Is my syntax wrong? Am I missing any directives?

Thanks
Subject Author Posted

correct upstream configuration for php-fpm?

iberkner September 13, 2009 11:06AM

Re: correct upstream configuration for php-fpm?

Gena Makhomed September 13, 2009 11:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready