title: IIS Reverse Proxy to Different Server
body: <p>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.</p>
  
  <p>Note: Unfortunately, changing the remote server and service to accept JSONP or CORS is not an option.</p>
  
  <p>Here is the config for Port jumping using IIS Reverse Proxy</p>
  
  <pre><code>&lt;system.webServer&gt;      
          &lt;rewrite&gt;
              &lt;rules&gt;
                  &lt;rule name="Reverse Proxy to Different Port" stopProcessing="true"&gt;
                      &lt;match url="^name/(.*)" /&gt;
                      &lt;action type="Rewrite" url="http://localhost:5984/{R:1}" /&gt;
                  &lt;/rule&gt;
              &lt;/rules&gt;
          &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
  </code></pre>