Here’s why I decided to give Nginx a shot: Nginx is lightweight and has a small memory footprint Nginx is super fast Nginx can be easily configured to send rails requests to mongrel, thin and others Nginx has easy to read configuration logs and rewriting rules I get to learn something new! Note: All ApacheBench test results displayed are the from the 4th consecutive test. This minimizes the negative effects of the slow startup of ruby processes with Phusion Passenger where the initial requests take a considerably long time.
A common requirement of a visitor facing web application is that the administration component of the app is behind a login with a different layout, style sheet and feel. Rails 2.0 makes this very simple with namespaced controllers. On a recent project the specs called for the administration to live under an /admin path, simple enough. script/generate controller admin/employees index show new create edit update Perfect, now I’ve got my new controller and some views.