Permalink
Browse files

Update passenger_config

  • Loading branch information...
1 parent 9b1e747 commit e4602a1d6628226746774eec8a65dbd92c39f97a @inforserver2 committed Apr 22, 2014
Showing with 5 additions and 3 deletions.
  1. +5 −3 passenger_config
View
@@ -11,9 +11,11 @@ else
passenger-install-apache2-module -a
echo Pushing LoadModule to httpd.conf...
cat >> /etc/apache2/httpd.conf <<-EOF
- LoadModule passenger_module /usr/lib/ruby/gems/$ruby_version/gems/passenger-$var/buildout/apache2/mod_passenger.so
- PassengerRoot /usr/lib/ruby/gems/$ruby_version/gems/passenger-$var
- PassengerRuby /usr/bin/ruby
+LoadModule passenger_module /usr/lib/ruby/gems/$ruby_version/gems/passenger-$var/buildout/apache2/mod_passenger.so
+<IfModule mod_passenger.c>
+PassengerRoot /usr/lib/ruby/gems/$ruby_version/gems/passenger-$var
+PassengerDefaultRuby /usr/bin/ruby
+</IfModule>
EOF
echo done.
fi

0 comments on commit e4602a1

Please sign in to comment.