mongrelってステキ
開始方法(productionの場合)
cd /path/to/railsapp/ mongrel_rails -e production -p 3000
ポート変更するなら-pの値を変える。
apacheと連携(VirtualHost使ってデフォルトポートに設定。)
<VirtualHost *:80> ServerAdmin webmaster@hoge.com DocumentRoot "/path/to/railsapp/public" ServerName rails.hoge.com ErrorLog logs/rails.hoge.com-error_log CustomLog logs/rails.hoge.com-access_log common ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost>
このパスにオプション(IndexesとかFollowSymLinksとか)付けるなら