views:

543

answers:

2

Hi,

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 ?

+6  A: 

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!

ash
A: 

Use the PassengerRuby directive.

Simone Carletti
heya, umm according to the docs, PassengerRuby can only be specified once, and doesn't seem to be allowed in virtual host configs ?
ash
Ops, you are right. I didn't notice it was a global server configuration.
Simone Carletti