由於我是Ubuntu Linux,屬於Debian派系的(因此,如果你是Debian使用者,這篇也可以看)
所以我們在安裝東西前,最好把Ruby的所有東西都裝好
還有,Ubuntu的使用者,請記住
$ sudo apt-get install build-essential
↑一定得作
$ sudo apt-get install ruby ruby1.8 ri rdoc
$ cd rubygems; sudo ruby setup.rb
$ sudo gem update;sudo gem install -y rails;sudo gem install -y mongrel
接著,Apache2裝好後
參考此篇文章設定
http://schwuk.com/articles/2006/06/13/hosting-rails-applications-with-mongrel-apache-2-mod_proxy-on-debian-stable
首先,將mongrel啟動
$ cd my_app/
$ mongrel_rails start -d
$ a2emod proxy
設定一下Rails的VirtualHost or Proxy
ProxyPass / http://cfc.zuso.tw:3000/
ProxyPassReverse / http://cfc.zuso.tw:3000/
好了之後設定/etc/apache2/mods-available/proxy.conf
Order deny,allow
Allow from all
存檔離開後就重新啟動Apache2
Google自訂搜尋
- Jul 30 Sun 2006 13:27
Apache2.2 + Mongrel + Rails的設定
close
全站熱搜
留言列表
發表留言