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

前端 未结 2 1413
北荒
北荒 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
    
    0 讨论(0)
  • 2020-12-05 14:16

    My guess would be that your server doesn't allow you to change the server variable HTTP_HOST when you rewrite the URL.

    At the level of the website where the URL rewrite is applied:

    inetmgr

    Then click the Add... link on the right tab and add your HTTP_HOST variable:

    add HTTP_POST

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