How to use C as a scripting language?

António P. P. Almeida appa at
Sat Dec 3 08:48:37 UTC 2011

On 3 Dez 2011 07h38 WET, nginx-forum at wrote:

> I am using php in nginx. I wonder how can I modify nginx
> configuration to work with C too. Considered a simple c file
> (hello.c and compiled as a.out) with printf of
> printf("Content-type: text/html\r\nStatus: 200 OK\r\n\r\n");
> printf("Hello World");
> how can I display Hello World by browsing the compiled version on
> localhost/a.out

Use either:

1. fcgiwrap

2. thttpd

3. mini-httpd

Nginx doesn't support CGI.

--- appa

More information about the nginx mailing list