# Nginx and fastcgi with c

**URL:** <https://www.ruby-forum.com/t/nginx-and-fastcgi-with-c/242508>\
**Category:** NGINX\
**Created:** [June 29, 2015, 12:29pm UTC](https://www.ruby-forum.com/t/nginx-and-fastcgi-with-c/242508 "2015-06-29T12:29:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![musicdenotation](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@musicdenotation](https://www.ruby-forum.com/u/musicdenotation)\
**Post date:** [June 29, 2015, 12:29pm UTC](https://www.ruby-forum.com/t/nginx-and-fastcgi-with-c/242508/1 "2015-06-29T12:29:59Z")

</div>

Where can I find good tutorials on writing fastcgi applications with  
nginx  
and c ? ( Googling didn’t help much. )

How do I handle HTTP requests received by the nginx server with c code ?

Please point out some resources towards learning the same .

Thanks

---

<div class="post-metadata">

**Author:** ![Prakash\_P](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/eb9ed0/32.png) [@Prakash\_P](https://www.ruby-forum.com/u/Prakash_P)\
**Post date:** [June 29, 2015, 12:36pm UTC](https://www.ruby-forum.com/t/nginx-and-fastcgi-with-c/242508/2 "2015-06-29T12:36:24Z")

</div>

Hi,

The Specs helped my writing a client, so it should help writing a server  
as  
well. Maybe there’s also a ready-to-use library out there.

Worth to mention, that this is independent from nginx. Theoretically you  
just need to listen on a socket, parse the request regarding the specs,  
_do  
something_ and return the response again regarding the specs.

See [http://www.fastcgi.com/devkit/doc/fcgi-spec.html](http://www.fastcgi.com/devkit/doc/fcgi-spec.html)

2015-06-29 12:29 GMT+02:00 Prakash P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
