Hi, On Wed, Aug 11, 2010 at 01:03:35PM +0200, [email protected] wrote: > Hi! > > > I've tried to configure two TCP proxies on different ports in one > configuration file but HAProxy doesn't seem to only handles one port (HTTP) > then. > > My configuration file: > > global > log 127.0.0.1 local0 > log 127.0.0.1 local1 notice > #daemon > debug > user haproxy > group haproxy > maxconn 4096 > > defaults > log global > mode tcp > option tcplog > option dontlognull > option redispatch > retries 3 > maxconn 2000 > contimeout 10000 > clitimeout 50000 > srvtimeout 50000 > > listen http :80 > mode tcp > balance roundrobin > > server h1 xxx.xxx.xxx.xxx:80 check > server h2 xxx.xxx.xxx.xxx:80 check > > listen rtmp :1935 > mode tcp > balance roundrobin > > server s1 xxx.xxx.xxx.xxx:1935 check > server s2 xxx.xxx.xxx.xxx:1935 check > > This doesn't work for me. It only works when I split the configuration in two > (one HTTP, one RTMP) and start two haproxy processes. What am I doing wrong > here?
I'm not sure I understand well your problem, from what I understand only the http section works, but that does not make sense, since almost nobody has a config with only one entry. Some even have 500 sections. So I think either you did multiple changes at once during some tests, or maybe your checks on port 1935 were failing, causing the servers to be marked down. Regards, Willy

