Basically I would like to access the same Rails app in production or environment mode depending on the URL. Is this possible? How?
I tried setting up two different virtual hosts, with different urls and values for RailsEnv, but that doesnt work: Apache will only serve one of the two environments for either urls, more specifically the first that was requested since Apache was started.
At a 10,000ft view, I’m guessing Passenger keeps track of apps internally by their full filesystem paths. So to Passenger, your two instances look like the same one.
You might try pointing your development vhost at a symlink instead – that may trick Passenger. If not, couldn’t you just use two different checkouts of your code? That would definitely work.