Skip to content

Instantly share code, notes, and snippets.

@tsabat
Created June 13, 2013 23:27
Show Gist options
  • Save tsabat/5778287 to your computer and use it in GitHub Desktop.
Save tsabat/5778287 to your computer and use it in GitHub Desktop.
passenger instructions
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-enterprise-server-4.0.5/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.3-p194/gems/passenger-enterprise-server-4.0.5
PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-1.9.3-p194/ruby
After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
configuration!
Press ENTER to continue.
--------------------------------------------
Deploying a Ruby on Rails application: an example
Suppose you have a Rails application in /somewhere. Add a virtual host to your
Apache configuration file and set its DocumentRoot to /somewhere/public:
<VirtualHost *:80>
ServerName www.yourhost.com
# !!! Be sure to point DocumentRoot to 'public'!
DocumentRoot /somewhere/public
<Directory /somewhere/public>
# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment