Installing Lighttpd on Mac OS X Tiger with DarwinPorts

As I mentioned in my previous post, Ruby on Rails prefers running under FastCGI processes. For most of us, that means installing mod_fastcgi under Apache. But an even better solution is to run a relatively new webserver named lighttpd.

From their site, they state that:

lighttpd a secure, fast, compliant and very flexible web-server which has been optimized for high-performance environments. It has a very low memory footprint compared to other webservers and takes care of cpu-load. Its advanced feature-set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) make lighttpd the perfect webserver-software for every server that is suffering load problems.

It is also the best solution for running Rails applications as it provides for faster execution of Rails scripts and it load balances very easiliy.

At this time, lighttpd is only available for *nix operating systems. If you run OSX, Installing Lighttpd on Mac OS X Tiger with DarwinPorts is a great place to start.