I keep seeing HAProxy configuration examples with a two-argument syntax. Indeed, the default configuration file supplied with 1.4.18 contains this:
listen appli1-rewrite 0.0.0.0:10001
cookie SERVERID rewrite
balance roundrobin
server app1_1 192.168.34.23:8080 cookie app1inst1 check inter 2000 rise 2 fall 5
server app1_2 192.168.34.32:8080 cookie app1inst2 check inter 2000 rise 2 fall 5
server app1_3 192.168.34.27:8080 cookie app1inst3 check inter 2000 rise 2 fall 5
server app1_4 192.168.34.42:8080 cookie app1inst4 check inter 2000 rise 2 fall 5
I am noticing a complete lack of any bind option, so am I to believe that this is a shorthand for bind?
The HAProxy documentation (http://haproxy.1wt.eu/download/1.5/doc/configuration.txt) contains one unrelated example with this syntax, but does not specify, document or explain it anywhere.
The documentation simply shows listen <name>
:
All proxy names must be formed from upper and lower case letters, digits,
'-' (dash), '_' (underscore) , '.' (dot) and ':' (colon). ACL names are
case-sensitive, which means that "www" and "WWW" are two different proxies.
(i.e. no spaces, so this clearly isn't just part of the name)
Is there any official documentation for this syntax?
Thanks.