How can I setup reverse proxy on IIS, allowing cross-host communciation between host1.mydomain.com and host2.mydomain.com?

限于喜欢 提交于 2019-12-01 15:49:45

FYI the URL seemed to move here:

http://www.iis.net/learn/extensions/url-rewrite-module/reverse-proxy-with-url-rewrite-v2-and-application-request-routing

Here's the basic gist:

Install these two things:

  • Application Request Routing
  • Url Rewrite Module

Configure "Application Request Routing"

  • IIS server node -> Application Request Routing Cache
  • Server Proxy Settings
  • Check "Enable Proxy"

Then one can configure URL rewriting module as needed.

Murari Kumar

By using following C# code "Enable Proxy" can be checked/enabled

ServerManager servMgr = new ServerManager();
Configuration config = servMgr.GetApplicationHostConfiguration();
ConfigurationSection proxySection = config.GetSection("system.webServer/proxy");
proxySection["enabled"] = true;
servMgr.CommitChanges();
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!