The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Rails 0.10.0 loves lighttpd

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
David Heinemeier Hansson

Posts: 484
Nickname: webster132
Registered: Jan, 2003

Rails is an open source web-application framework for Ruby
Rails 0.10.0 loves lighttpd Posted: Feb 25, 2005 12:35 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by David Heinemeier Hansson.
Original Post: Rails 0.10.0 loves lighttpd
Feed Title: Riding Rails
Feed URL: http://sedoparking.com/search/registrar.php?domain=®istrar=sedopark
Feed Description: The knowledge diff for all things Rails
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by David Heinemeier Hansson
Latest Posts From Riding Rails

Advertisement

With the release of Rails 0.10.0, the reign of Apache has finally ended and equal opportunity for all web servers has been introduced. The most important beneficial of this is lighttpd. The server describes itself as “...a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments” and is catching the attention of a lot of people lately.

Personally, I’ve been most interested in its FastCGI implementation that includes a load balancer component. But whether you need that or not, you owe it to yourself to check out lighttpd. Here’s a sample minimal configuration file needed to setup lighttpd to run a Rails application under FastCGI:


server.port = 8080
server.bind = "127.0.0.1"
# Needed on OS X: server.event-handler = "freebsd-kqueue"

server.modules = ( "mod_rewrite", "mod_fastcgi" )

url.rewrite = ( "<sup>/$" =>"index.html", "</sup>([^.]+)$" =>"$1.html" )
server.error-handler-404 = "/dispatch.fcgi"

server.document-root = "/path/application/public"
server.errorlog      = "/path/application/log/server.log"

fastcgi.server = ( ".fcgi" => ( "localhost" => (
"min-procs" => 1,  "max-procs" => 5,
"socket"   =>"/tmp/application.fcgi.socket",
"bin-path" =>"/path/application/public/dispatch.fcgi",
"bin-environment" => ( "RAILS_ENV" =>"development" )
) ) )

This configuration is also to be found in the README file of new Rails installations.

Read: Rails 0.10.0 loves lighttpd

Topic: The Ruby Mix Tape, Day Two Previous Topic   Next Topic Topic: Got Forte?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use