Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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'm setting up a server with KVM (IP and I have created inside of it one virtual machine using network bridging at This virtual machine has an nginx instance running, which I can access from the server or from any computer computer in the internal network just typing in the browser

However, I try configure HAProxy in the same server that hosts KVM and looking the status page of HAProxy it always shows the virtual machine as "DOWN". If I try from the server http://localhost, it should be the same than if I go to My goal is to build a reverse proxy, but I tried this little example and won't work. What am I doing bad?

This is my config file in the server:

# /etc/haproxy/haproxy.cfg
        maxconn 4096
        user haproxy
        group haproxy

        log     global
        mode    http
        option  httplog
        option  dontlognull
        retries 3
        option  redispatch
        maxconn 2000
        contimeout      5000
        clitimeout      50000
        srvtimeout      50000

listen ServerStatus *:8081
        mode    http
        stats   enable
        stats   auth haproxy:haproxy

listen Server *:80
       mode http
       balance roundrobin
       cookie JSESSIONID prefix
       option httpclose
       option forwardfor
       option httpchk HEAD /check.txt HTTP/1.0
       server mv1 cookie A check


share|improve this question
up vote 0 down vote accepted

Alright, I don't know what has happened but I changed this line option httpchk HEAD /check.txt HTTP/1.0 for this one option httpchk HEAD / HTTP/1.0 and start the server after starting HAProxy. Then it works as expected.

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.