六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 61|回复: 0

Apache + passenger

[复制链接]

升级  77%

131

主题

131

主题

131

主题

举人

Rank: 3Rank: 3

积分
431
 楼主| 发表于 2013-2-7 06:56:13 | 显示全部楼层 |阅读模式
http://www.railsgarden.com/2008/04/12/configurating-passenger-mod_rails-on-slicehost-with-ubuntu-710/

install passenger
sudo gem install pog passengersudo passenger-install-apache2-module

vi /etc/apache2/sites-available/www.test.com
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.soLoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.soPassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3PassengerRuby /usr/bin/ruby1.8DeflateCompressionLevel 3<IfModule mod_deflate.c>  AddOutputFilterByType DEFLATE text/html text/css text/javascript application/x-javascript application/javascript</IfModule>ServerName 127.0.0.1NameVirtualHost *<VirtualHost *>  ServerName 221.130.181.158  <Location />    Order Allow,Deny    Deny from all  </Location></VirtualHost><VirtualHost *>  ServerAdmin www.test.com  ServerName test.com  DocumentRoot "~/test/public/"  <Directory "~/test/public/">    AllowOverride none  </Directory></VirtualHost>
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表