title: Apache: reverse proxy to process PHP from another server
body: <p>I have the following setup:</p>
  
  <ul>
  <li><i>Plain-Server</i>: Delivering php-files as plain text</li>
  <li><i>Proxy-Server</i>: Asking the Plain-Server for the php file and parsing it.</li>
  </ul>
  
  <p>Now my question: How do I configure the Proxy-Server (a fully configurable apache 2.2 with PHP 5.3) to interpret the plain php files from Plain-Server?</p>
  
  <p>Example: Given a small php script "hello.php" on Plain-Server (accessible throw <a href="http://plainserver/hello.php" rel="nofollow noreferrer">http://plainserver/hello.php</a>):</p>
  
  <pre><code>&lt;?php
  echo "Hello World";
  ?&gt;
  </code></pre>
  
  <p>Plain-Server only outputs it as plain text, no parsing of php-code.</p>
  
  <p>On the Proxy-Server the file "hello.php" does not exist. But when requesting hello.php from Proxy-Server it should get the hello.php from Plain-Server with mod_proxy (Reverse Proxy). It should also parse and execute the php, saying only "Hello World".</p>
  
  <p>The Reverse Proxy is already running, but the execution of php code not working. I tried mod_filter, but couldn't is work. Any ideas how to that?</p>