Forum Discussion

Draven_186334's avatar
Draven_186334
Icon for Altocumulus rankAltocumulus
Feb 10, 2015
Solved

Rewrite Public Host Name to Internal Host Name

Hello,   Trying to modify the public URL to the local URL for IIS backend servers, along with using host header redirection.   So trying to -   draven.com rewrite to draven.local - then sw...
  • Draven_186334's avatar
    Feb 12, 2015

    Solution Found -

     

    WHEN HTTP_REQUEST { set header [string map {".com" ".local"} [HTTP::header "Host"]] HTTP::header replace host $header switch $header { ninja.local { pool IIS_Server_Pool_Ninja } draven.local { pool IIS_Server_Pool_draven } default { reject } } }

     

    Thanks For your help