First it checks the URI. If it is starting with “/online*” the variable ‘is_redirected’ is set to “legacy”.
Next, it’s checking if the “is_redirected” variable is set to “legacy”. If it matches “legacy” it will check if pool member 1.1.1.1:80 is up. If it is up, it will make a new load balancing deciscion and set’s the selected pool member to 10.101.83.80. If 1.1.1.1:80 is down, it will make a new load balancing deciscion and set’s the selected pool member to 2.2.2.2:80.