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

Adding pools/sites for application with server farmRSS

2 replies

Last post Feb 13, 2020 05:29 PM by Rovastar

  • Adding pools/sites for application with server farm

    Feb 12, 2020 12:49 PM|Ady.S|LINK


    I have an application which is running through server farm and I'm trying to find the simplest way how to add other application pools/sites for this application.

    - I have two servers - Server1 and Server2
    - The application is running on Server2 on IIS 10
    - Server1 receives requests and directs them based on a rewrite rule to the server farm which is on the Server1

    The rewrite rule:

    <rule name="rule1" enabled="true" stopProcessing="true">
    <match url="^(application)(/.*)?$" />
    <action type="Rewrite" url="http://SERVER_FARM/{R:1}{R:2}" />

    - Server farm directs the requests from Server1 to Server2 where is running the site with application

    It works fine this way, but with one application pool/site only. I want everything to work the same way, but with more pools/sites on the Server2. How to add other pools/sites for this application?

    Thanks in advance.


  • Re: Adding pools/sites for application with server farm

    Feb 13, 2020 06:14 AM|Jalpa Panchal|LINK


    You could use a rule like:

                <rule name="ARR_myServerFarm_loadbalance" patternSyntax="Wildcard"
                    <match url="*" />
                    <action type="Rewrite" url="http://myServerFarm/{R:0}" />

    which rewrite all the site from another server.

    you need to add this rule at the server level.

    Refer below link for more detail:


    .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.
  • Rovastar Rovastar

    5495 Posts



    Re: Adding pools/sites for application with server farm

    Feb 13, 2020 05:29 PM|Rovastar|LINK

    You can have a many rules and farms you want. It all depends on your requirements.

    Normally I route traffic based on the host header (the domain name) for each site but you can do others, maybe a directory or for a certain IPs or user browser or something.

    Most of the time this will be an additional condition(s) the rewrite rule.

    The most important thing to get correct is the ordering of the rules otherwise it can get confusing about what it is routing too.

    Troubleshoot IIS in style