Skip to content

Instantly share code, notes, and snippets.

@tauil
Created July 3, 2014 03:33
Show Gist options
  • Save tauil/c3fc391f7b25989c2cfa to your computer and use it in GitHub Desktop.
Save tauil/c3fc391f7b25989c2cfa to your computer and use it in GitHub Desktop.
# Definitive solution for apache production setup!
LoadModule passenger_module /home/vagrant/.gems/gems/passenger-4.0.45/buildout/apache2/mod_passenger.so
<IfModule mod_passenger.c>
PassengerRoot /home/vagrant/.gems/gems/passenger-4.0.45
PassengerDefaultRuby /usr/bin/ruby2.1
</IfModule>
# Snippet for passenger module installed with sudo, but this is not needed
# LoadModule passenger_module /var/lib/gems/2.1.0/gems/passenger-4.0.45/buildout/apache2/mod_passenger.so
# <IfModule mod_passenger.c>
# PassengerRoot /var/lib/gems/2.1.0/gems/passenger-4.0.45
# PassengerDefaultRuby /usr/bin/ruby2.1
# </IfModule>
SetEnv GEM_HOME /home/vagrant/.gems/
SetEnv PATH $PATH:$GEM_HOME/bin
SetEnv HOME /home/vagrant
PassengerDefaultUser vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment