t4.conf (833B)
1 service test { 2 port 10001; 3 type http; 4 revivinginterval 5; 5 dispatchmode roundrobin; 6 connectiontimeout 600; 7 verbosity on; 8 9 backend a { 10 server localhost; 11 port 10000; 12 verbosity on; 13 stickycookie BalancerID=Backend_A; 14 addclientheader "Set-Cookie: BalancerID=Backend_A; Path=/"; 15 addserverheader "X-Real-IP: %r"; 16 } 17 18 backend b { 19 server localhost; 20 port 10000; 21 verbosity on; 22 stickycookie BalancerID=Backend_B; 23 addclientheader "Set-Cookie: BalancerID=Backend_B; Path=/"; 24 addserverheader "X-Real-IP: %r"; 25 } 26 27 backend c { 28 server localhost; 29 port 10000; 30 verbosity on; 31 stickycookie BalancerID=Backend_C; 32 addclientheader "Set-Cookie: BalancerID=Backend_C; Path=/"; 33 addserverheader "X-Real-IP: %r"; 34 } 35 }