Hi, I was using rails1.8.7 and ruby2.3.15 for 'testsite1' app. I'm created new app 'testsite2' using ruby2.0.0 and rails4.0.0. To make it work simultaneously, I'm using RVM with 2.0.0 as default ruby and passenger installed on it. Below are the configuration for the APACHE and PASSENGER:
RailsBaseURI /testsite1
<Directory /home/MYUSER/testsite1>
PassengerRuby /home/MYUSER/.rvm/wrappers/ruby-1.8.7-p374/ruby
Allow from all
Options -MultiViews
</Directory>
RailsBaseURI /testsite2
<Directory /home/MY_USER/testsite2>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
'testsite2' is working as expected, but 'testsite1' is trying to use ruby2.0.0 (ignoring the apache configuration attribute PassengerRuby). If I provide the 'PassengerRuby' attribute outside the <Directory> tag, 'testsite2' stops working and 'testsite1' works perfectly.
Hi, I was using rails1.8.7 and ruby2.3.15 for 'testsite1' app. I'm created new app 'testsite2' using ruby2.0.0 and rails4.0.0. To make it work simultaneously, I'm using RVM with 2.0.0 as default ruby and passenger installed on it. Below are the configuration for the APACHE and PASSENGER:
PASSENGER.CONF:
PassengerRoot /home/MYUSER/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.23
PassengerDefaultRuby /home/MYUSER/.rvm/wrappers/ruby-2.0.0-p247/ruby
PASSENGER.LOAD:
LoadModule passengermodule /home/MYUSER/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.23/buildout/apache2/mod_passenger.so
APACHE CONFIGURATION FILE:
<VirtualHost *:80>
ServerName 192.168.12.124
DocumentRoot /home/MY_USER/public
ErrorDocument 404 /404.html
RailsEnv development
RailsBaseURI /testsite1
<Directory /home/MYUSER/testsite1>
PassengerRuby /home/MYUSER/.rvm/wrappers/ruby-1.8.7-p374/ruby
Allow from all
Options -MultiViews
</Directory>
RailsBaseURI /testsite2
<Directory /home/MY_USER/testsite2>
Allow from all
Options -MultiViews
</Directory>
</VirtualHost>
'testsite2' is working as expected, but 'testsite1' is trying to use ruby2.0.0 (ignoring the apache configuration attribute PassengerRuby). If I provide the 'PassengerRuby' attribute outside the <Directory> tag, 'testsite2' stops working and 'testsite1' works perfectly.
Please help me on this.