Haproxy 503 Service Non Disponible . Aucun serveur n'est disponible pour traiter cette demande

Comment haproxy traiter les fichiers statiques , comme .css, .js, .le jpeg ? Lorsque j'utilise mon fichier de configuration , mon brower dit :

503 Service Non Disponible

Aucun serveur n'est disponible pour traiter cette demande.

Ce ma config :

global
  daemon
  group root
  maxconn  4000
  pidfile  /var/run/haproxy.pid
  user root

defaults
  log  global
  option  redispatch
  maxconn 65535
  contimeout 5000
  clitimeout 50000
  srvtimeout 50000
  retries  3
  log 127.0.0.1 local3
  timeout  http-request 10s
  timeout  queue 1m
  timeout  connect 10s
  timeout  client 1m
  timeout  server 1m
  timeout  check 10s


listen dashboard_cluster :8888
  mode http
  stats refresh 5s
  balance roundrobin
  option httpclose
  option tcplog
  #stats realm Haproxy \ statistic
  acl url_static path_beg -i /static
  acl url_static path_end -i .css .jpg .jpeg .gif .png .js
  use_backend static_server if url_static

backend static_server
  mode http
  balance roundrobin
  option httpclose
  option tcplog
  stats realm Haproxy \ statistic
  server controller1 10.0.3.139:80 cookie controller1 check inter 2000 rise 2 fall 5
  server controller2 10.0.3.113:80 cookie controller2 check inter 2000 rise 2 fall 5

Mon fichier de mal ? Que dois-je faire pour résoudre ce problème ? sat !

OriginalL'auteur changzhi | 2014-01-02