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?
Hi.
Am 05-12-2015 22:59, schrieb [email protected]:
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
Your better of with Lua (embedded in nginx), search for openresty.
Posted at Nginx Forum: