# # Ldirectord will periodically connect to each real server # and request a known URL. If the data returned by the server # does not contain the the expected response then the # test fails and the real server will be taken out of the available # pool. The real server will be added back into the pool once the # test succeeds. If all real servers are removed from the pool then # localhost is added to the pool as a fallback measure. # # Based on the sample ldirectord.cf provided with ldirectord # # Prepared: March 2003 # # Global Directives checktimeout=03 checkinterval=15 #fallback=127.0.0.1:80 autoreload=no logfile="/var/log/ldirectord.log" logfile="local0" quiescent=no # Virtaul Server for HTTP virtual=192.168.0.162:80 fallback=127.0.0.1:80 real=192.168.0.160:80 masq real=192.168.0.161:80 masq # service=http # request="index.html" # receive="ds10Testseite fuer die Apache-Installation auf dieser Web Site" scheduler=rr #persistent=600 protocol=tcp # checktype=negotiate checktype=connect # Virtual Service for HTTPS #virtual=10.1.3.61:443 # fallback=127.0.0.1:443 # real=192.168.6.4:443 masq # real=192.168.6.5:443 masq # service=https # request="index.html" # receive="Test Page" # scheduler=rr # persistent=600 # protocol=tcp # checktype=negotiate # Virtaul Service for FTP # Note that peresistancy needs to be turned on for FTP when # used with LVS-TUN (ipip) or LVS-DR (gate), but not with LVS-NAT (masq). #virtual=10.1.3.61:21 # fallback=127.0.0.1:21 # real=192.168.6.4:21 masq # real=192.168.6.5:21 masq # service=ftp # request="welcome.msg" # receive="Welcome" # login="anonymous" # passwd="anon@xxxxxxxxx" # scheduler=rr # #persistent=600 # protocol=tcp # checktype=negotiate ## Virtaul Service for IMAP #virtual=10.1.3.61:143 # fallback=127.0.0.1:143 # real=192.168.6.4:143 masq # real=192.168.6.5:143 masq # service=imap # #login="test" # #passwd="test" # scheduler=rr # #persistent=600 # protocol=tcp # checktype=negotiate # ## Virtaul Service for POP #virtual=10.1.3.61:110 # fallback=127.0.0.1:110 # real=192.168.6.4:110 masq # real=192.168.6.5:110 masq # service=pop # #login="test" # #passwd="test" # scheduler=rr # #persistent=600 # protocol=tcp # ## Virtaul Service for SMTP #virtual=10.1.3.61:25 # fallback=127.0.0.1:25 # real=192.168.6.4:25 masq # real=192.168.6.5:25 masq # service=smtp # scheduler=rr # #persistent=600 # protocol=tcp # ## Virtaul Service for LDAP #virtual=10.1.3.61:389 # fallback=127.0.0.1:389 # real=192.168.6.4:389 masq # real=192.168.6.5:389 masq # service=ldap # scheduler=rr # #persistent=600 # protocol=tcp #