Link to home
Start Free TrialLog in
Avatar of Domenic DiPasquale
Domenic DiPasqualeFlag for United States of America

asked on

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

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)
ASKER CERTIFIED SOLUTION
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Domenic DiPasquale

ASKER

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.
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.