Forum: NGINX upstream fast_cgi no port error

Posted by Dick Middleton (Guest)
on 2010-11-28 14:33
(Received via mailing list)
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 Middleton
dick@fouter.net
PGP Key ID: 0x9F9434FD
Posted by Phil Bayfield (Guest)
on 2010-11-28 20:37
(Received via mailing list)
You shouldn't need to use an upstream for fast cgi, something like this
would work:

fastcgi_pass localhost:1234;
Posted by Dick Middleton (Guest)
on 2010-11-29 22:10
(Received via mailing list)
On 11/28/10 19:36, Phil Bayfield 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
Posted by langthangko (Guest)
on 2013-01-09 07:12
(Received via mailing list)
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: 
http://forum.nginx.org/read.php?2,153847,234821#msg-234821
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.