Forum: NGINX Need help on fast cgi c++ configuration on windows

Posted by coolbhushans@gmail.com (Guest)
on 2013-01-24 19:24
(Received via mailing list)
Hi everyone
I am new to nginx  so really need u r help


My problem is that i set up niginx server on windows  and it runs very 
well
. But i want to run c++ programs i.e(.exe)
so i come accross fast-cgi lib then i compiled source successfully now i
have fast cgi wraper for .exe ie. cgi-fcgi.exe

now i changed in nginx.conf as

location ~ /fcgi/$ {
    include fastcgi_params;
    fastcgi_pass 127.0.0.1:3000;
}

and running it as http://localhost/fcgi/ in browser

it not working so i checked error log and i found
upstream prematurely closed connection

so any guess
thanks in advance

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,235556,235556#msg-235556
Posted by Fasih (Guest)
on 2013-01-25 07:33
(Received via mailing list)
Check your fastcgi code. Ensure that it is running properly. Have you
checked the logs of that process?


On Thu, Jan 24, 2013 at 10:23 AM, coolbhushans@gmail.com <
Posted by Bhushan Sonawane (Guest)
on 2013-01-25 11:29
(Received via mailing list)
yes i cheked it and now i am able to run it but not using cgi-fcgi.exe
using anothe wraper
there is problem in tht code due have any idea about what can be 
problem
in cgi-fcgi.exe
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.