I have successfully installed this proxy. I installed it in IIS 5.1 in Windows XP. I didn't install it under website but under a Virtual Directory.
I've also created a rule and it successfully executed, for example, I use this rule to proxy wikipedia web site: RewriteRule ^(.*)/wiki/(.*)$ http://en.wikipedia.org/wiki/$2 [NC,P,QSA]
to access the site thru proxy is by typing this in address bar: http://mysite/Proxy/wiki/
The problem is when i tried to access other web site (this is an internal application using ASP.NET, located in other server)
The rule is like this: RewriteRule RewriteRule ^(.*)/sub1/(.*)$ http://othersite/sub1/$2 [NC,P,QSA]
and to access it by typing: http://mysite/Proxy/sub1/sub2/authenticate.aspx?param1=xxxx¶m2=yyyy¶m3=zzzz
at first, It successfully executed the authenticate.aspx. the proxy redirecting to the real address which is http://othersite/sub1/sub2/authenticate.aspx?param1=xxxx¶m2=yyyy¶m3=zzzz
but, inside the authenticate.aspx, there is a command that redirect to other page, for example: Response.Redirect("page2.aspx").
This is when the problem occur. In the address bar the link is became: http://mysite/page2.aspx (as you can see, there is no "Proxy" section), which cause a "The resource cannot be found." error.
the link should be http://mysite/Proxy/page2.aspx, because I set the proxy under "Proxy" virtual directory not the Home directory.
Does anyone know the solution for this? i don't want to change the codes in the target application.
Perhaps, there is a rule that can resolve this problem.