Solved

Forward an URL from IIS to another server

Posted on 2009-03-30
4
885 Views
Last Modified: 2013-11-30
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
0
Comment
Question by:Martin_Radbo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 33

Expert Comment

by:shalomc
ID: 24017231
switch between the servers.
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
NameVirtualHost *:80
 
<VirtualHost *:80>
# proxy to IIS
 
ServerName www.public-domain.com
ServerAlias public-domain.com *.public-domain.com
 
ProxyRequests off
ProxyPass / http://iis-internal-server/ 
ProxyPassReverse / http://iis-internal-server/ 
# ProxyPassReverseCookieDomain   # check if necessary
# ProxyPreserveHost On           # check if necessary
</VirtualHost>
 
<VirtualHost *:80>
# standard apache vhost
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
</VirtualHost>

Open in new window

0
 
LVL 2

Expert Comment

by:BillAndras
ID: 24023538
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
0
 

Author Comment

by:Martin_Radbo
ID: 24048217
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.

0
 

Accepted Solution

by:
Martin_Radbo earned 0 total points
ID: 24533828
We decided to user the "Forward to an URL"-option for the websites involved and that works fine even if the solution is not very "cosmetic" correct.

Thanks for your suggestions anyway.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
General network\voice question.. 4 56
Exchange 2013 will not send or receive 9 81
X.509 Cert Upload to Cisco WAP 6 58
Active Directory permissions 5 45
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
What You Need to Know when Searching for a Webhost Provider
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question