Upstream fast_cgi no port error

Hi,

I’m trying out nginx and some of its features. I’m using stable
version:
nginx/0.8.53 on ubuntu server.

If I try to configure fast_cgi to use an upstream backend as in the
wiki:

upstream backend {
server localhost:1234;
}

fastcgi_pass backend;

I get the the error no “port in upstream”.

According to changelog this looks the same error as appeared in version
0.5.0
and fixed in 0.5.1

Is this a regression or have I overlooked something?

Dick


Dick M.
[email protected]
PGP Key ID: 0x9F9434FD

You shouldn’t need to use an upstream for fast cgi, something like this
would work:

fastcgi_pass localhost:1234;

On 11/28/10 19:36, Phil B. wrote:

You shouldn’t need to use an upstream for fast cgi, something like this
would work:

fastcgi_pass localhost:1234;

Yes of course. However upstream is supposed to work as well and, for me
at
least, it doesn’t seem to.

If somebody could corroborate my observation then I’d feel more
confident
logging it as a bug.

Dick

I have an error as yours, After that I found that my config of upstream
is
not included. Because I config upstream in a separated file. Please
check

Posted at Nginx Forum: