Sunday, May 17th, 2009
Getting Capistrano’s web:disable To Work With Nginx
Recently I deployed a new Ruby on Rails application using nginx+passenger instead of the usual apache+passenger configuration. As a result, I couldn’t use the traditional Apache rewrite rules to display the maintenance.html page if it existed. Here are the necessary corresponding rewrite rules for nginx to achieve the same effect. if (-f $document_root/system/maintenance.html) { rewrite [...]
