View Complete Thread
  • Re: URL Rewrite redirect to the port 80 not port 8080 on Internal web server

    Jul 13, 2017 09:53 PM|KaneW|LINK

    Thanks Yuk Ding;

    I modified the syntax to make it work like this.

    But to make it work, I have to uncheck "Use URL Rewrite to inspect incoming requests" in Routing Rules of the server in server farms.  Do you know why?

    And I cannot see any data in "Monitoring and Management" of server farms.

    <rule name="uat_inbound" stopProcessing="true">
     <match url="uat" />
     <conditions>
          <add input="{HTTP_HOST}" pattern="www.company.com" />
    </conditions>

    <action type="Rewrite" url="http://wwwtest.company.local:8080" />
    </rule>

    <rule name="DEV_inbound" stopProcessing="true">
     <match url="dev" />
     <conditions>
          <add input="{HTTP_HOST}" pattern="www.company.com" />
    </conditions>

    <action type="Rewrite" url="http://wwwtest.company.local:8081" />
    </rule>