Redirect PHP Requests to Another Server?
Posted on 2004-04-29
This is my scenario:
One Red Hat 8.0 server with Apache 2.0.4x with a public IP address. This server hosts only one static page at http://mydomain.com/index.html (neither PHP, nor anything installed)
One Fedora Core 1 Server with Apache 1.3.29. This server hosts is connected to the same LAN as the Red Hat Server, but has no public IP address, with PHP, MySQL and other stuff installed.
Then, what you get when you type http://mydomain.com/index.html in your browser, is the index.html file served by the first Red Hat 8.0 Server. This is quite simple, and it works ok, but here's my question:
Is it possible to "redirect" some request from the Red Hat to the Fedora Core?
For example, this is what I'd need:
If you type http://mydomain.com in the browser, you get the index.html hosted on the Red Hat Server, BUT If you type http://mydomain.com/stock in the browser, you get a complete dynamic PHP application served by the Fedora Core Server
Is this possible? If so, how can I accomplish this??
Thanks so much in advance, and sorry about my english