[url]http://www.railsgarden.com/2008/04/12/configurating-passenger-mod_rails-on-slicehost-with-ubuntu-710/[/url]
install passenger
vi /etc/apache2/sites-available/www.test.com
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>