title: Can Apache Reverse Proxy exclude certain file types?
body: <p>I have an Apache/Passenger combo serving Rails 3.x and the same combo serving Rails 2.x via a reverse proxy to Passenger Standalone.  The reason I'm doing this is because Rails 2.x uses an older version of Ruby than the Ruby used by the Apache/Passenger.</p>
  
  <p>However there is a bit of php in the Rails 2.x app which Passenger Standalone cannot support. (Confirmed by Hongli Lai on the Passenger Discussion Group).  Hongli suggests excluding the 'php' bits from the Reverse Proxy.</p>
  
  <p>Can this be done, and if so how?</p>
  
  <hr>
  
  <p>Edit to show how the Reverse proxy has been set up:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName gtt
     DocumentRoot /home/purvez/www/gtt/public
     RailsEnv development
     PassengerEnabled off
     ProxyPass / http://127.0.0.1:3000/
     ProxyPassReverse / http://127.0.0.1:3000/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>Also how an ordinary site has been set up:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ServerName testapp
     DocumentRoot /home/purvez/www/testapp/public
     RailsEnv development
  &lt;/VirtualHost&gt;
  </code></pre>