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

前端 未结 2 1668
逝去的感伤
逝去的感伤 2021-01-17 20:03

I have a page at host1.mydomain.com/page_from_host1.jsp and an HTML page at host2.mydomain.com/page_from_host2.html. host1 is an IIS7/Tomcat box and host2 is an IIS7 box.

相关标签:
2条回答
  • 2021-01-17 20:08

    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();
    
    0 讨论(0)
  • 2021-01-17 20:29

    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.

    0 讨论(0)
提交回复
热议问题