IIS AAR - URL Rewrite for reverse proxy - how to send HTTP_HOST

前端 未结 2 1418
北荒
北荒 2020-12-05 13:32

Trying to use AAR as a reverse proxy in front of several back end IIS servers.

  • One public ip address assigned to the server running IIS/AAR

2条回答
  •  眼角桃花
    2020-12-05 14:04

    This post has the answer - Modifying headers with IIS7 Application Request Routing

    Need to enable preserveHostHeader - can't see how you do that in the UI but this works

    Run this from command line to update Machine/webroot/apphost config

    %windir%\system32\inetsrv\appcmd.exe set config -section:system.webServer/proxy -preserveHostHeader:true /commit:apphost
    

提交回复
热议问题