IIS hosted site not accessible with ARR

Puneeth DC 11 Reputation points
2021-08-05T03:20:24.053+00:00

I have hosted a site on Server1 on the port 5001. On Server1 i have also configured ARR to balance the load to other 2 servers. The request that come to Server1 port 80 should be forwarded to other 2 servers through ARR and that is working fine. But the site hosted on 5001 on Server1 is not accessible any more ?? is it by the design ?

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,165 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Zhang-MSFT 3,736 Reputation points
    2021-08-05T09:47:54.407+00:00

    Hi @Puneeth DC ,

    Please check the url rewrite at server level. The request sent to port 5001 is likely to be redirected to the back-end server. You need to configure the rewrite rules to redirect to the backend server based on the port.

    For example:

    <conditions trackAllCaptures="true">  
               <add input="{HTTP_HOST}" pattern="(.*):80" />  
    </conditions>  
    

    Add this condition will only rewrite url with 80 port to backend server. Port 5001 doesn't match this condition and will not be rewritten.


    If the answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our  documentation  to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best regards,
    Bruce Zhang

    0 comments No comments