> I'm having two vhosts with the same DocumentRoot but with two
> different RailsEnv settings which isn't working for me as expected.
>
> The Problem:
> If I restart apache and open app-development in my browser, the app is
> loaded with the development env, which is what I expect. But if I open
> app-production next, the app is also loaded with the development env.
> It's the same the other way around. That means that it looks like that
> the first env that get's spawned will be the one for all vhosts with
> the same DocumentRoot.
> (Btw, I'm not using dev and prod env, but two custom staging envs)
>
> So the question basically is, if I have to use different DocumentRoots
> or if there are any other tricks?
One theory -- if something is written to the /tmp directory in the
Rails application that Passenger uses to determin env, that would
result in comman info being used by multiple vhosts. If that's the
case, two copies of the application will certainly be necessary (kinda
sounds like it is anyway).
-- gw