読者です 読者をやめる 読者になる 読者になる

mod_rails/passenger った

# gem install passenger
# passenger-install-apache2-module
# vim mods-available/passenger.load

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.1
PassengerRuby /usr/bin/ruby1.8
# vim sites-available/default

<VirtualHost *:80>
  ServerName foo.bar.com
  ServerAlias foo.bar.com
  DocumentRoot /path/to/railsapp/public/
</VirtualHost>
# a2enmod passenger
# /etc/init.d/apache2 force-reload

ふつーに動く。わーいこれでrailsアプリ動かすの超らくだよー!