csw-rule "t3" header "host" suffix "TESTER1.NGLAB.LOCAL" case-insensitive
csw-rule "t5" header "host" suffix "TESTER2.NGLAB.LOCAL" case-insensitive

csw-policy "P-DOMAIN-SERVER-SELECTION-XFF" case-insensitive
 match "t3" forward 3
 match "t5" forward 5

server real r1 192.168.88.41
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port 9001 group-id  3 3
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r2 192.168.88.42
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port 9001 group-id  3 3
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r3 192.168.88.43
 backup
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port 9001 group-id  5 5
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r4 192.168.88.44
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port 9001 group-id  5 5
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r5 192.168.88.45
 backup
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r6 192.168.88.46
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server real r7 192.168.88.47
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server remote-name r8 192.168.88.48
 port 9001
 port 9001 keepalive
 port 9001 l4-check-only
 port ssl
 port ssl keepalive
 port ssl l4-check-only
 port http
 port http keepalive
 port http url "HEAD /"
 port http l4-check-only

server virtual VS-1111 192.168.81.190
 sticky-age 10
 predictor round-robin
 port http
 port ssl sticky
 port ssl csw-policy "P-DOMAIN-SERVER-SELECTION-XFF"
 port ssl csw
 port ssl keep-alive
 port ssl lb-pri-servers
 bind http r1 9001 r2 9001 r3 9001 r4 9001 r5 9001 r6 9001 r7 9001 r8 9001
 bind ssl r1 9001 r2 9001 r3 9001 r4 9001 r5 9001 r6 9001  r7 9001 r8 9001



server real r10 172.20.128.82
 port http
 port http keepalive
 port http url "HEAD /lbcheck.aspx HTTP/1.1\r\nHost: \r\n\r\n"
 port ssl

server real r11 172.20.128.81
 port http
 port http keepalive
 port http url "HEAD /lbcheck.aspx HTTP/1.1\r\nHost: \r\n\r\n"
 port ssl

server virtual VS-2222 172.20.96.54
 predictor least-conn
 port http
 port http reset-on-port-fail
 port ssl sticky
 port ssl reset-on-port-fail
 bind http r10 http r11 http
 bind ssl  r10 ssl  r11 ssl

