locked
Reverse proxy question RRS feed

  • Question

  • User2068315096 posted

    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.

     Thanks!

    Thursday, April 1, 2010 3:09 PM

Answers

All replies

  • User-47214744 posted

    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:

    http://blogs.msdn.com/carlosag/archive/2010/04/02/setting-up-a-reverse-proxy-using-iis-url-rewrite-and-arr.aspx

     

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Friday, April 2, 2010 12:13 AM
  • User2068315096 posted

    Unbelievable...this is EXACTLY what I needed to do, and I got it working within minutes thanks to you!  Thanks again!

    Friday, April 2, 2010 1:17 PM
  • User-1174711417 posted

    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?

    Wednesday, July 14, 2010 8:47 AM
  • User-47214744 posted

    Yes, it can work with any HTTP server, including Apache or any other.

    Friday, July 16, 2010 12:28 AM