Martin Radbo
asked on
Forward an URL from IIS to another server
We have a customer with two web servers (one is IIS 4.0) and the other one is a Linux based server. Both of them hosts a couple of domain names (public domain name as company.com for example).
Problem is that they have only one public IP-nr and no real proxy server. So the firewall now sends all http-traffic to the IIS-server.
As you already can understand, I would like to redirect som of the domain names to the other server. In IIS 4.0, I have configured a web site listening to all of these domain names, and entered "forward to URL" and the IP-nr of the second server (Linux-based). That config does not work since the orginal URL is lost and all visitors are shown the standard website at the linux-server.
How do I do this on the IIS-server? Manually add on website per domain, and enter the target URL as "http://XXX.XXX.XXX.XXX/~username/" works but the URL does not look nice for the visitor.
Any other suggestion?
Thanks in advance
// Martin
Problem is that they have only one public IP-nr and no real proxy server. So the firewall now sends all http-traffic to the IIS-server.
As you already can understand, I would like to redirect som of the domain names to the other server. In IIS 4.0, I have configured a web site listening to all of these domain names, and entered "forward to URL" and the IP-nr of the second server (Linux-based). That config does not work since the orginal URL is lost and all visitors are shown the standard website at the linux-server.
How do I do this on the IIS-server? Manually add on website per domain, and enter the target URL as "http://XXX.XXX.XXX.XXX/~username/" works but the URL does not look nice for the visitor.
Any other suggestion?
Thanks in advance
// Martin
I would recommend upgrading from IIS 4.0 to IIS 7 with built in rewriting etc but for now you will need to use an ISAPI filter to proxy the requests. I do not have an IIS 4.0 install to try this on but check out the page listed below.
Link:
http://iisrelayj.sourceforge.net/examples.php
Download:
http://sourceforge.net/project/showfiles.php?group_id=46195
Link:
http://iisrelayj.sourceforge.net/examples.php
Download:
http://sourceforge.net/project/showfiles.php?group_id=46195
ASKER
Upgradering is not an option for several reasons.
But Shaloms idea could work, we will try that I get back with result or more questions.
But Shaloms idea could work, we will try that I get back with result or more questions.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
direct all traffic to the apache server, define virtual hosts on apache for the IIS domains and use reverse proxy (with mod_proxy) to the IIS.
ShalomC
Open in new window