Tag: Passenger
gem install passenger
RailsBaseURI /foo <Directory /home/www/foo/public> allowoverride all options -multiviews </Directory> RailsBaseURI /bar <Directory /home/www/bar/public> allowoverride all options -multiviews </Directory>
cd /var/www/html ln -s /home/www/foo/public foo
bundle exec rake assets:precompile RAILS_ENV=production RAILS_RELATIVE_URL_ROOT=/hoge
$ gem install passenger $ passenger-install-apache2-module
LoadModule passenger_module /Users/sora/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/passenger-4.\ 0.59/buildout/apache2/mod_passenger.so <IfModule mod_passenger.c> PassengerRoot /Users/sora/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/passenger-4.0.59 PassengerDefaultRuby /Users/sora/.rbenv/versions/2.2.1/bin/ruby </IfModule>
<VirtualHost *> PassengerRuby /Users/sora/.rbenv/versions/2.2.3/bin/ruby ServerName is.home.jp ServerAdmin webmaster@is.home.jp DocumentRoot /Users/sora/work/idea-stocker/public <Directory "/Users/sora/work/idea-stocker/public"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog logs/is_error.log LogLevel warn CustomLog logs/is_acces.log combined </VirtualHost> <VirtualHost *> PassengerRuby /Users/sora/.rbenv/versions/2.2.2/bin/ruby ServerName milk.home.jp ServerAdmin webmaster@is.home.jp DocumentRoot /opt/home/milkode/public PassengerHighPerformance on SetEnv MILKODE_DEFAULT_DIR /opt/home/milkode/data <Directory "/opt/home/milkode/public"> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog logs/milk_error.log LogLevel warn CustomLog logs/milk_acces.log combined </VirtualHost>