Forwarding to another PortRSS

2 replies

Last post May 01, 2020 03:03 AM by Yuk Ding

  • Forwarding to another Port

    Apr 30, 2020 10:34 PM|eddster2309|LINK

    I would like to forward my iis web server link (test.com/test) to go to another web server running on the same machine (TEST.COM:81) without changing the url addresses bar. If anyone could please help, thankyou in advanced.

  • Lex Li
    Affordable IIS Consulting Services at https://support.lextudio.com/services/consulting.html
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Forwarding to another Port

    May 01, 2020 03:03 AM|Yuk Ding|LINK

    Hi eddster2309,

    It seems that you need reverse proxy to rewrite test.com/test to test.com/81.

    So please install Application request routing and IIS. Enable proxy in IIS manager->server node->application request routing cache->Server proxy setting->Enable proxy.

    Finally, you only have to apply this rule in your web.config.

      <rule name="rewrite" stopProcessing="true">
                        <match url="^test(.*)" />
                        <action type="Redirect" url="http://test.com:81{R:1}" />
                    </rule>
                </rules>

    Best Regards,

    Jokies Ding

    Yuk Ding

    MSDN Community Support
    Please remember to "Mark as Answer" the responses that resolved your issue.