Using ARR to setup a proxy

Install IIS

Install ARR 3.0 from WebPI

Open IIS management console (inetmgr), select the server node.

On the right panel, open "Appliation Request Routing Cache", then click "Server Proxy Settings", in the next page, check "Enable Proxy", choose "pass through", then "Apply".

Back to the default panel, find "Configuration Editor". Add a rule in system.webServer/rewrite/globalRules section follow the parameters in below configuration:

  <rewrite>
    <globalRules>
      <rule name="Proxy" patternSyntax="Wildcard" stopProcessing="true">
        <match url="*" />
        <conditions>
          <add input="{HTTP_HOST}" pattern="*" />
        </conditions>
        <action type="Rewrite" url="http://{C:0}/{R:0}" />
      </rule>
    </globalRules>
  </rewrite>

If you are using Azure VM, please go to the management portal open port 80 in the VM's Endpoint configuration panel.

And please note, this proxy only supports HTTP, but not HTTPS, it's due to the limitation of ARR module.

posted on 2014-11-05 00:17  谢绝围观  阅读(202)  评论(0编辑  收藏  举报

导航