Web application to call C code

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:
https://forum.nginx.org/read.php?2,263295,263296#msg-263296

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs