CREATE POOL my_apaches POOL my_apaches ADD 10.0.0.10:8080 POOL my_apaches ADD 10.0.0.11:8080 POOL my_apaches ADD 10.0.0.12 POOL my_apaches ADD 10.0.0.13:8081 CREATE SERVICE balancer SET listen = 0.0.0.0:80 SET role = reverse_proxy SET pool = my_apaches SET persist_client = on SET persist_backend = on SET verify_backend = on ENABLE balancer
CREATE POOL dynamic SET nodefile = conf/nodelist.dat CREATE SERVICE balancer2 SET listen = 0.0.0.0:81 SET role = reverse_proxy SET pool = dynamic SET persist_client = on SET persist_backend = on SET verify_backend = on
# whitespace and comments allowed 10.1.0.10 # test machine #10.1.0.10:8083 # test machine # can include port numbers, but defaults to 80 if not provided: # 10.1.0.4:80
In node file, you should list IP addresses.
It's a comment after "#".
CREATE SERVICE docs SET listen = 0.0.0.0:80 SET role = web_server SET docroot = /usr/share/doc/ SET dirindexing = 1 SET persist_client = on ENABLE docs
CREATE SERVICE mgmt SET role = management SET listen = 127.0.0.1:60000 ENABLE mgmt
CREATE SERVICE foo SET listen = 0.0.0.0:8081 SET role = web_server SET docroot = /var/www/html/yapcasia2009/foo.com/ SET dirindexing = 1 ENABLE foo CREATE SERVICE bar SET listen = 0.0.0.0:8082 SET role = web_server SET docroot = /var/www/html/yapcasia2009/bar.com/ SET dirindexing = 0 ENABLE bar
CREATE SERVICE vdemo SET listen = 0.0.0.0:8080 SET role = selector SET plugins = vhosts SET persist_client = on VHOST *.foo.com = foo VHOST *.bar.com = bar
# VHOST * = foo ENABLE vdemo
I'm sorry. I have never used it. I omitted upload_tracker. But...