Welcome! Log In Create A New Profile

Advanced

nginx and FastCGI C/C++

June 05, 2010 09:30AM
Hello is it possible, that nginx can open FastCGI Application's like the Apache2 mod_fastcgi and open applications like:
[code]
#include <fcgi_stdio.h>

int main(void)
{
unsigned int counter = 1;
while(FCGI_Accept() >= 0)
{
printf("Content-type: text/html\r\n\r\n");
printf("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\"\r\n");
printf(" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n\r\n");
printf("<html>\r\n");
printf(" <head>\r\n");
printf(" <title>FastCGI ist schnell!</title\r\n");
printf(" </head>\r\n");
printf(" <body>\r\n");
printf(" <h1>Das erste FastCGI</h1>\n\r");
printf(" <p>Das FastCGI wurde bisher %d mal aufgerufen</p>\r\n",
counter++);
printf(" </body>\r\n");
printf("</html>\r\n");
}
return 0;
}
[/code]
The file ending should be index.fcgi, and i don't want a fastcgi_pass directive.. Is this possible?
Subject Author Posted

nginx and FastCGI C/C++

kleinchris June 05, 2010 09:30AM

Re: nginx and FastCGI C/C++

JCR June 05, 2010 04:48PM

Re: nginx and FastCGI C/C++

kleinchris June 05, 2010 06:53PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
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