I have two servers: an Ubuntu/Apache web server and a Windows 2008 IIS7 server. I have one external static IP address. All web requests on port 80 are forwarded to my Ubuntu machine. The majority of my sites reside on the Ubuntu server, however, a specific site needs to be hosted out of the Windows 2008 machine. How can I forward requests for a specific Virtual Host on my Apache web server to IIS to another host on my network?
For instance, my Apache machine is 192.168.100.110
and all requests for www.example.com need to be forwarded transparently to 192.168.100.101
. All web requests will always go through the Apache machine first.
How can I accomplish this?
Use mod_proxy: