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)

 

posted @ 2016-01-20 14:22  Farmer.D  阅读(271)  评论(0编辑  收藏  举报