Solved

Need to redirect request from IIS server to old Apache Server.

Posted on 2016-07-28
3
113 Views
Last Modified: 2016-07-29
I'm in the process of moving websites to a new IIS server. The old server was running IIS and a old version of Apache web server, running on port 8081. I would like to avoid installing Apache on the new server and wonder if it's possible to redirect request from the new IIS server to the old Apache service. Any thoughts? Thank you for your time.

Goal:
Requesting site www.MYWEBSITE.net/virtual directory = Load content on new IIS server.
Requesting site www.MYWEBSITE.net:8081/virtualdirectory = redirect to Apache server.

Environment:
New IIS server: Windows Server 2012 R2 (IIS 8.5)
0
Comment
Question by:Domenic DiPasquale
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
Adam Brown earned 500 total points
ID: 41733471
You'll need to have a different host name for the Apache Server for that to work, but it's possible to do.
The way to do it is to create a second Virtual Site in IIS, modify the bindings on it so it responds on port 8081, then configure HTTP redirect (You have to install the HTTP Redirect feature for IIS to do this) so it redirects users to HTTP://www.myapachewebsite.net.

You can't do it with the same host name, since host names can generally only apply to a single server. But if you add a new DNS entry like legacy.mywebsite.net and point it to the old web server, that will work without too much issue. You just have to make sure the redirect rule is set to redirect relative to the url request.
0
 

Author Closing Comment

by:Domenic DiPasquale
ID: 41734522
I seem to be on the right track, thank you for your help. By adding another virtual site, and configuring the redirect, was able to redirect to the apache server using the new host name I created in DNS. One issue I seem to be encountering is the virtual directory getting duplicated in the link. If I enter: http://www.MYWEBSITE.net:8081/directory, I'm redirected to http://apacheserver.MYWEBSITE.net:8081/directory/directory. I going to send a notice out the users that use this server let them know to just use http://www.MYWEBSITE.net:8081, or the new DNS hostname. But if you know if a quick fix or explanation to this, please let me know. Again, thank you for your time.
0
 
LVL 39

Expert Comment

by:Adam Brown
ID: 41734821
Change your redirect destination so it does not have anything after the port number. It will redirect using whatever people use for the directory, based on the root redirect.
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

OfficeMate Freezes on login or does not load after login credentials are input.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this Micro Tutorial viewers will learn how they can get their files copied out from their unbootable system without need to use recovery services. As an example non-bootable Windows 2012R2 installation is used which has boot problems.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now