I have the following setup:
- Plain-Server : php file delivery in plain text
- Proxy server : Plain-Server request for php file and its analysis.
Now my question is: how to configure Proxy-Server (fully custom apache 2.2 with PHP 5.3) to interpret simple php files with Plain-Server?
Example: for a small php script "hello.php" on a Plain-Server (available cast http: //plainserver/hello.php ):
<?php echo "Hello World"; ?>
Plain-Server displays it only as plain text, without parsing php code.
The file "hello.php" does not exist on the proxy server. But when requesting hello.php with Proxy-Server, it should get hello.php from Plain-Server with mod_proxy (Reverse Proxy). It should also parse and execute php, saying only "Hello World".
The reverse proxy is already running, but php code execution does not work. I tried mod_filter but could not work. Any ideas like this?
Alex
source share