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 have following HAProxy configuration:


frontend mixed
    mode    http
    bind    [PUBLIC IP]:80  
    bind # [for https via stunnel]
    bind    [OTHER PUBLIC IP]:80

    option  httplog
    option  dontlognull
    option  httpclose
    maxconn 8000

    # non-ssl api
    acl API hdr_dom(host) -i
    use_backend apiserver if API

    default_backend hosted_app

backend hosted_app
    mode http
    balance roundrobin
    server gae


My problem is that everything works fine on both public IPs but when I make:

curl --header 'Host:'

i get 503 error after a while...

altough this examples works fine:

curl --header 'Host:'

What is wrong?

share|improve this question
Did you take a look at the haproxy.log? – quanta Aug 12 '12 at 16:02

Your Answer


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

Browse other questions tagged or ask your own question.