Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got haproxy to work for us. But right now there are two haproxy processes running. One for HTTP and the other for TCP (RTMP). I've tried to configure both proxies in one configuration file but haproxy only handles HTTP then.

My configuration file:

    log local0
    log local1 notice
    user haproxy
    group haproxy
    maxconn 4096

    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 check
    server h2 check

listen rtmp :1935
   mode tcp
   balance roundrobin

   server s1 check
   server s2 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.

share|improve this question
up vote 1 down vote accepted

Ok, I have to answer my own question one more time. Yes, it is possible and my configuration file works. The problem was somewhere outside of HAProxy. Mea culpa.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.