We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

IIS ARR Multiple Ports [Answered]RSS

4 replies

Last post Jun 17, 2021 06:48 PM by Christovam

‹ Previous Thread|Next Thread ›
  • IIS ARR Multiple Ports

    May 28, 2021 07:41 PM|Christovam|LINK

    HI.

    I'm having a hard time configuring the balance in IIS via ARR with multiple ports. The difficulty is in working with different doors than the 80 and 443. On the same server I have applications on port 80, 443 and 8080. I managed to make it work on port 80 and 443. When I add port 8080 it is redirected to port 443.

    The structure is as follows:

    IP PUBLIC:80   > IIS ARR > Private IP1:80, PRIVATE IP2:80
    IP PUBLIC:443  > IIS ARR > Private IP1:443, PRIVATE IP2:443
    IP PUBLIC:8080 > IIS ARR > Private IP1:8080, PRIVATE IP2:8080

    The rules I have for url rewrite are:

                    <rule name="ARR_serverfarm_loadbalance" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
                        <match url="*" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                        <action type="Rewrite" url="http://serverfarm/{R:0}" />
                  </rule>

    Other Rule:

                    <rule name="forward proxy" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
                        <match url="*" negate="true" />
                        <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                            <add input="{HTTP_HOST}" pattern="*" />
                        </conditions>
                        <action type="Rewrite" url="http://{C:1}/{R:0}" />
                    </rule>

    I appreciate the help.

    </div> </div> </div>

  • Re: IIS ARR Multiple Ports

    May 31, 2021 01:37 AM|samwu|LINK

    Hi Christovam,

    Christovam

    I'm having a hard time configuring the balance in IIS via ARR with multiple ports. The difficulty is in working with different doors than the 80 and 443. On the same server I have applications on port 80, 443 and 8080. I managed to make it work on port 80 and 443. When I add port 8080 it is redirected to port 443.

    I suggest you use failed request tracking for troubleshooting.

    Using Failed Request Tracing Rules to Troubleshoot Application Request Routing

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: IIS ARR Multiple Ports

    Jun 01, 2021 12:27 PM|Christovam|LINK

    Good Morning.

    I turned on tracing on the ARR server, but it doesn't generate the errors. I reviewed it again, so I believe there are no errors in this issue.
    I'm trying to create the rule with the source on port 8080 and destination on port 8080.
    If you have any further questions please let me know.

  • Re: IIS ARR Multiple Ports

    Jun 04, 2021 03:11 AM|samwu|LINK

    Hi Christovam,

    Christovam

    I turned on tracing on the ARR server, but it doesn't generate the errors. I reviewed it again, so I believe there are no errors in this issue.
    I'm trying to create the rule with the source on port 8080 and destination on port 8080.

    You can check the generated xml file, it will show where to redirect port 8080 to port 443.

    Best regards,

    Sam

    IIS.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today. Learn more >
  • Re: IIS ARR Multiple Ports

    Jun 17, 2021 06:48 PM|Christovam|LINK

    Hi.

    In summary, I couldn't configure port 80, 443 and 8080 on the same destination and ended up creating two different webfarms, one on 80 and 443 and another on 8080 and 8443.
    After that as a final solution, I created conditions based on the URL.

    Example:

    <conditions trackAllCaptures = "true" >
    <add input = "{URL}" pattern = "^/app1/( . *)"/> 
    </conditions>

‹ Previous Thread|Next Thread ›