3 \cp ./materials/E-2-IPv4v4-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
8 RealServer1=RealServer1
9 RealServer1_ADDR=127.0.0.1
10 RealServer1_PORT=50001
11 start_lighttpd -s $RealServer1 -a $RealServer1_ADDR -p $RealServer1_PORT -S
15 echo "Test failed: start_lighttpd RealServer1"
19 RealServer2=RealServer2
20 RealServer2_ADDR=127.0.0.1
21 RealServer2_PORT=50002
22 start_lighttpd -s $RealServer2 -a $RealServer2_ADDR -p $RealServer2_PORT -S
26 echo "Test failed: start_lighttpd RealServer2"
34 echo "Test failed: $L7VSD"
40 $INIT_L7DIRECTORD start
43 echo "Test failed: $INIT_L7DIRECTORD start"
49 EXPECT="Layer-7 Virtual Server version 3.0.0
50 Prot LocalAddress:Port ProtoMod Scheduler
51 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
52 TCP localhost:50000 sslid rr
53 -> localhost:50001 Masq 1 0 0
54 -> localhost:50002 Masq 1 0 0 "
55 if [ "$RET" != "$EXPECT" ]
57 echo "Test failed: $L7VSADM"
62 RET=`curl -k --sslv3 https://$VS:50000/ https://$VS:50000/ https://$VS:50000/`
63 EXPECT=`echo -e "${RealServer1}\n${RealServer1}\n${RealServer1}"`
65 if [ "${RET}" != "${EXPECT}" ]
67 echo "Test failed: curl -k --sslv3 https://$VS:50000/ https://$VS:50000/ https://$VS:50000/"
72 EXPECT="Layer-7 Virtual Server version 3.0.0
73 Prot LocalAddress:Port ProtoMod Scheduler
74 -> RemoteAddress:Port Forward Weight ActiveConn InactConn
75 TCP localhost:50000 sslid rr
76 -> localhost:50001 Masq 1 0 3
77 -> localhost:50002 Masq 1 0 0 "
78 if [ "$RET" != "$EXPECT" ]
80 echo "Test failed: $L7VSADM"