title: How can I run two run two passenger servers behind one apache instance?
body: <p>In order to run passenger behind apache, these two directives are needed:</p>
  
  <pre><code>PassengerRoot
  PassengerDefaultRuby
  </code></pre>
  
  <p>These two have a 'server config' context according to documentation <a href="https://www.phusionpassenger.com/library/config/apache/reference/" rel="nofollow noreferrer">here</a>. Which means Apache is only able to set one ruby version and one passenger root for the entire server instance. Since, I have two ruby versions running using RVM and each Rails instance is running in its own virtual host context, is there a way to set PassengerRoot and PassengerDefaultRuby per virtual host ?</p>
  
  <p>PS: Hack-ish solutions are also acceptable.</p>