|
|
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> |
|