reverse proxy from virtual directory

Jul 2, 2009 at 5:06 AM

I have succesfully installed the URL Rewriter and Reverse Proxy into an IIS virtual directory (proxy).

http://www.mydomain.com/proxy

I have the following rule:

RewriteRule ^(.*)$   http://orsd.kohalibrary.com/$1 [P]

When I enter http://www.mydomain.com/proxy I am correctly proxied to http://orsd.kohalibrary.com and the default page is returned however the subsequent requests from that page exclude proxy from the path and therefore are not proxied correctly. I assume this has to do with the response header. Is there a way to preserve the original path for subsequent requests?

Coordinator
Jul 2, 2009 at 3:50 PM

The proxy will not modify the content of the page that is being proxied.  If you want to do something like that I suggest creating a filter.  As I recently advised in

http://urlrewriter.codeplex.com/Thread/View.aspx?ThreadId=61026