Welcome! Log In Create A New Profile

Advanced

configuratioin fastcgi C/C++ program

JCR
June 01, 2010 03:31PM
hello

I have a fastcgi program like this
[code]
1 #include "/usr/local/include/fcgi_stdio.h"
2 #include <stdlib.h>
3 int count;
4 void initialize(void)
5 {
6 count=0;
7 }
8 int main(void)
9 {
10 initialize();
11
12 while (FCGI_Accept() >= 0)
13 {
14 printf("Content-type: text/html\r\n"
15 "\r\n"
16 "<title>FastCGI Hello! (C, fcgi_stdio library)</title>"
17 "<h1>FastCGI Hello! (C, fcgi_stdio library)</h1>"
18 "Request number %d running on host <i>%s</i>\n",
19 ++count, getenv("SERVER_HOSTNAME"));
20 }
21 return 1;
22 }
[/code]

which compiles fine but I am unable to configure nginx to execute it.

I read http://wiki.nginx.org/NginxConfiguration but to no avail.

Also, once I will have figured this out, I will need that program to work with the nginx_http_push_module-0.692

Nginx is otherwise working fine on my Centos 5 machine.

Could anyone point me to an example for such a configuration.

Thank you
Subject Author Posted

configuratioin fastcgi C/C++ program

JCR June 01, 2010 03:31PM

Re: configuratioin fastcgi C/C++ program

Almir Karic June 01, 2010 07:36PM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 09:52AM

Re: configuratioin fastcgi C/C++ program

Almir Karic June 02, 2010 11:52AM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 12:17PM

Re: configuratioin fastcgi C/C++ program

JCR June 02, 2010 03:00PM

Re: configuratioin fastcgi C/C++ program

Roger Hoover June 02, 2010 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 92
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready