How would I go about running two separate Rails applications using Phusion Passenger with one using Ruby 1.8.x and the other using Ruby 1.9.x ? I'm running Redmine which isn't Ruby 1.9.x compatible, and the other application is a home grown app.
I'm using Apache 2.2.x with Passenger 2.2.4.
Is this even possible ?
I ended up running Nginx with Passenger and Ruby 1.9 on port 80, and then proxying off my other virtual hosts to Apache 2.2 on port 8080 with Passenger and Ruby 1.8. Win!
Just a little late but I found this thanks to Google: Phusion Passenger & running multiple Ruby versions Must be the necromancer in me.
Use the PassengerRuby directive.
Passenger supports multiple Ruby interpreters as of version 4.0.0 (February 2013). The PassengerRuby config option has been made a per-virtual host option, so you can customize your Ruby interpreter on a per-application basis. See here for details.