Apache + passenger

[url]http://www.railsgarden.com/2008/04/12/configurating-passenger-mod_rails-on-slicehost-with-ubuntu-710/[/url]

install passenger

sudo gem install pog passenger
sudo 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.so
LoadModule deflate_module /usr/lib/apache2/modules/mod_deflate.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby1.8

DeflateCompressionLevel 3
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/css text/javascript application/x-javascript application/javascript
</IfModule>

ServerName 127.0.0.1
NameVirtualHost *

<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>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值