Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.



Install Application Request Routing for IIS.

Server Farm

Define a server farm and add your servers to the farm.

URL Rule 1

Edit the Inbound Rule

URL Rule 2

Edit the Inbound Rule "sticky session"

  • Condition: Match "Token" in HTTP header
  • Server Variable "LB_TOKEN" set to token value
  • Action: Route to Farm

See also MSDN Documentation

Server Affinity

Disable Server Affinity because, we're using a custom

"sticky session" rule (as defined above).

Load Balancing

Set the algorithm to "Server variable hash".

Use "LB_TOKEN" variable, which contains the sessions token.

Same host aliases

For multiple TI services on the same host, aliases must be defined in the Windows hosts file, so they can be referenced in ARR.

Windows hosts file: c:\windows\system32\drivers\etc\hosts 

Code Block
# Copyright (c) 1993-2009 Microsoft Corp.


# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.


# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.


# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.


# For example:


# # source server

# # x client host

# localhost name resolution is handled within DNS itself. localhost

::1 localhost lh1 lh2

RedisSingle Redis instance used by all TIService instances