Let\'s say I have the simplest single-file Sinatra app. The hello world on their homepage will do. I want to run it under Apache with Phusion Passenger, AKA mod_rails.
Example vhost file for rack app with passenger:
ServerName server.local ServerAlias *.server.local DocumentRoot /dir/public RackEnv development Order allow,deny Allow from all
Example Config.ru:
require File.expand_path('../boot.rb', __FILE__) use Rack::Middleware run Rack::Cascade.new([array])