web application to call C code

Aleksandar Lazic al-nginx at none.at
Sun Dec 6 10:24:28 UTC 2015


Hi.

Am 05-12-2015 22:59, schrieb gideon425.gb8 at mailnull.com:
> I am writing a web application and am interested in whether I can use
> nginx. For each request for the web server, I want it to call some C
> code I have written. The code C will generate the HTML I want to send
> back. Is there a simple way to do this?

I see at least 2 options.

1.) Write a nginx module like ngx_http_empty_gif_module or any other 
nginx module.

     http://nginx.org/en/docs/http/ngx_http_empty_gif_module.html
     
http://hg.nginx.org/nginx/file/tip/src/http/modules/ngx_http_empty_gif_module.c

2.) use a more dedicated server like http://gwan.ch/developers

On which platform do you plan to run your C-Code ?

Cheers Aleks



More information about the nginx mailing list