码迷,mamicode.com
首页 > 其他好文 > 详细

Using ARR to setup a proxy

时间:2014-11-05 01:46:52      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   os   sp   div   

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 finally, this proxy only supports HTTP, but not HTTPS.

Using ARR to setup a proxy

标签:style   blog   http   io   color   ar   os   sp   div   

原文地址:http://www.cnblogs.com/polymorphism/p/4075255.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!