Here you are:
In main server:
> apt-get install haproxy -y
in /etc/init.d/haproxy
change
enabled=0
to
enabled=1
If you do not have "enabled=0" line, add "enabled=1"
then, edit your /etc/haproxy/haproxy.cfg as below:
> global
> log 127.0.0.1 local0 notice
> maxconn 2000
> user haproxy
> group haproxy
>
> defaults
> log global
> mode http
> option httplog
> option dontlognull
> retries 3
> option redispatch
> timeout connect 5000
> timeout client 10000
> timeout server 10000
>
> listen myapp
> bind 0.0.0.0:33333
> mode http
> stats enable
> stats uri /haproxy?stats
> stats realm Strictly\ Private
> stats auth define_a_username:define_a_password
> balance roundrobin
> option httpclose
> option forwardfor
> server server2name server2_ip:9981
> server server3name server3_ip:9981
>
restart your haproxy:
/etc/init.d/haproxy restart
In VLC:
http://main_server_ip:33333/playlist
Kind regards
Ermos