I need to configure several applications on a new intranet server (Win 2008 R2 Standard SP1). I'm having difficulty with the Rewriter URL rule. I had a similar rule working fine on my local IIS (Win 7). This rule is intended to create a reverse proxy for a web service that allows jQuery AJAX requests from the client to avoid XSS.
The rule is given below, and if I use it as is, and enter the URL of the example into the browser:
http://srv01.domain.com/serviceproxy/workflow/Users/GetUsers?q=smith&max=10
I get a 404 response from the server. If I change the type to Redirect, I get a response from the expected server (but, obviously, this will invalidate my attempt to avoid XSS).
<rewrite> <rules> <rule name="Reverse Proxy - WCF Service" stopProcessing="true"> <match url="serviceproxy/workflow/(.+)" /> <action type="Rewrite" url="http://srv01.domain.com/WorkflowService/{R:1}" /> </rule> </rules> </rewrite>
Any ideas that might be missing from the server configuration? Is this a security setting somewhere that needs to be configured to allow rewriting to occur?
source share