# Ruby, fastcgi and lighttpd

**URL:** <https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204>\
**Category:** Ruby\
**Created:** [May 27, 2007, 4:46am UTC](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204 "2007-05-27T04:46:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [May 27, 2007, 4:46am UTC](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204/1 "2007-05-27T04:46:18Z")

</div>

hi,

i want to use lighttpd + ruby + fastcgi to build web apps. Not the  
entire RoR framework (for the present projects)

I can’t seem to find a procedure to build this, in terms of system  
configuration, namely lighttpd’s fastcgi configuration module:  
10-fastcgi.conf

thanks in advance,

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [May 27, 2007, 4:51am UTC](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204/2 "2007-05-27T04:51:18Z")

</div>

Check out this project [http://ramaze.rubyforge.org/](http://ramaze.rubyforge.org/). It doesn’t come  
with a  
ORM, but you could use ActiveRecord.

---

<div class="post-metadata">

**Author:** ![pedro\_mg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@pedro\_mg](https://www.ruby-forum.com/u/pedro_mg)\
**Post date:** [May 27, 2007, 8:05am UTC](https://www.ruby-forum.com/t/ruby-fastcgi-and-lighttpd/105204/3 "2007-05-27T08:05:27Z")

</div>

You might want to take a look at rails fcgi\_handler.rb for some  
inspiration.

which works with the following style of configuration inside a host  
block:

fastcgi.server = ( “.fcgi” =\>  
( “localhost” =\>  
(  
“socket” =\> “path\_to\_your.socket”,  
“bin-path” =\> “path\_to\_your/public/dispatch.fcgi”,  
“bin-environment” =\> ( “RAILS\_ENV” =\> “production” ),  
“min-procs” =\> 5,  
“max-procs” =\> 5,  
“idle-timeout” =\> 60  
)  
)  
)

Hope this helps.
