• IIS反相代理的设置



    IIS reverse proxyTo use IIS and ARR as a reverse proxy:

    1. Install ARR from
    2. In IIS Manager(直接打开IIS管理器,不要用服务管理器的IIS,否则有些节点会找不到), connect to the IIS server - in this case, localhost
    3. Highlight the server in the Connections pane
    4. Double-click URL Rewrite
    5. Click View server variables on the right pane
    6. Add HTTP_X_FORWARDED_HOST and HTTP_X_FORWARDED_SCHEMA to the list

    7. Highlight the server in the Connections pane
    8. Double-click Application Request Routing Cache
    9. Click Server Proxy Settings under the Proxy heading in the Actions pane.
    10. Tick the Enable proxy checkbox and then click Apply. Leave the default values in place.

    11. In the Connections pane, under Sites, highlight Default Web Site
    12. Double-click the URL Rewrite feature, and click Add Rule(s)… in the Actions pane
    13. Add a reverse proxy rule, with server name: localhost:1111 (replace with real location and port of your Upsource service)
    14. Open created rule, check rewrite url, add server variables:

    * set HTTP_X_FORWARDED_HOST to {HTTP_HOST}
    * set HTTP_X_FORWARDED_SCHEMA to https (if the IIS site is configured to https, else set to http)

  • 相关阅读:
    计算机网络
    计算机网络知识总结
    final,static,super,this
    ArrayList
    基础面试题
    BATJ都爱问的多线程面试题
    Session过期、失效时间
    类加载器ClassLoader源码解析
    连接ftp服务器 JDK 1.7
    根据当前请求的特征,判断该请求是否来自手机终端
  • 原文地址:https://www.cnblogs.com/Farmer-D/p/5145062.html
Copyright © 2020-2023  润新知