How to use C as a scripting language?

etrader nginx-forum at nginx.us
Sat Dec 3 07:38:30 UTC 2011


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

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,219531,219531#msg-219531



More information about the nginx mailing list