I am trying to figure out if its possible to do a Reverse Proxy in IIS that actually hit a different web server end point. I have used it to traverse Ports on the same machine, but never to a different machine. The purpose of this is that I am writing a Javascript application that needs to connect to data on a different server and I am getting Same Origin errors.
Note: Unfortunately, changing the remote server and service to accept JSONP or CORS is not an option.
Here is the config for Port jumping using IIS Reverse Proxy
<system.webServer>
<rewrite>
<rules>
<rule name="Reverse Proxy to Different Port" stopProcessing="true">
<match url="^name/(.*)" />
<action type="Rewrite" url="http://localhost:5984/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
<action type="Rewrite" url="http://*IP HERE*:*PORT HERE*/{R:1}" />
and then have your Javascript issue a HTTP GET/POST to/name/*path to remote server*
. – Septa