Project

General

Profile

LighttpdOnRails » History » Revision 6

Revision 5 (davojan, 2006-06-27 08:49) → Revision 6/17 (Anonymous, 2006-12-05 21:50)

= Ruby on Rails with Lighttpd = 

 A document is available at http://old.bougyman.com/RailsonDebian.html which contains step by step instructions on setting rails up with lighttpd.    A more abbreviated version (different author, i believe jawong) is available at http://wiki.rubyonrails.com/rails/show/Lighttpd . 
 Finally, this article seems the most up-to-date: http://wiki.rubyonrails.com/rails/pages/RailsOnDebianStable .    May you have happy Railing. 

 == Using RubyOnRails in a simple-vhost environment == 

 Let's say: For an easy setup you want to use [http://www.lighttpd.net/documentation/simple-vhost.html simple-vhost] but still want to separate the rails-installation: 

 {{{ 
 $HTTP["host"] == "ruby.example.org" { 
   server.document-root = "/var/www/site/public/" 
   fastcgi.server = ... 
 } 
 $HTTP["host"] != "ruby.example.org" { 
   simple-vhost.server-root = "/var/www/servers/" 
   simple-vhost.default-host = "www.example.org" 
   simple-vhost.document-root = "pages" 
 } 
 }}}