IIS 7 & IIS 8
URL Rewrite Module
Reverse proxy question
Last post Jul 16, 2010 04:28 AM by CarlosAg
Apr 01, 2010 07:09 PM|LINK
I'm using IIS 7 with the URL Rewrite Module and have a default website, say:
www.mysite.com. I need to have our customers access the
www.mysite.com/sub-company1, www.mysite.com/sub-company2 etc for uniformity, but get the actual data for the web pages from completely different servers on the Internet. There is no data for those subfolders
on the www.mysite.com webserver. So, I need to have people who type www.mysite.com/sub-company1, actually see the web pages from an external server, say
www.mycompany.com, without having the
www.mysite.com/sub-company1 part of the URL in the browser window change. I do not want to do this with IFrames since we can't use direct links to any of the pages url masked with IFrames.
It seems no matter how I try to address the problem with the sub-company1 subfolders, I can't get the page to display correctly. The closest I can get is to have most of the data from the external website displayed, but the formatting is all wrong. It
seems somehow the way I configured the reverse proxy rule that the subfolders are not handled correctly.
I can create individual websites on the same server and the proxied web pages display correctly. The problems is handling the subfolders. Can anyone help me accomplish this? I'm not even sure if I need to create the rewrite rules at the default web site
level, or at the folder level. Any help would be greatly appreciated.
Apr 02, 2010 04:13 AM|LINK
I thought this was good material for a small blog post where I could explain why the problems in the formatting and the display are happening. And also how to implement something like this, take a look at:
Apr 02, 2010 05:17 PM|LINK
Unbelievable...this is EXACTLY what I needed to do, and I got it working within minutes thanks to you! Thanks again!
Jul 14, 2010 12:47 PM|LINK
Carlos, I am pretty sure that the answer to my question is yes but I have to ask anyway. Can this reverse proxy work on sites that are Apache as well as others?
Jul 16, 2010 04:28 AM|LINK
Yes, it can work with any HTTP server, including Apache or any other.