HAProxy community

Backend app has no server available!

hi, I newbie in haproxy, I already install and configure haproxy for load balance on centos7, I have 2 backend server with diferent subnet IP. is this work in different subnets? haproxy canot start and show error mesage “backend app has no server available!”

  1. Load balancer server = <== HAproxy I want install in this server
  2. Bacnkend server =
  3. Backend server2 =


frontend app_servers *:80
default_backend apps

frontend main
bind *:5000
acl url_static path_beg -i /static /images /javascript /stylesheets
acl url_static path_end -i .jpg .gif .png .css .js

use_backend static          if url_static
default_backend             web-servers


static backend for serving up images, stylesheets and such

backend static
balance roundrobin
server static check


round robin balancing between the various backends

backend app
balance roundrobin
server app1 check
server app2 check
server app3 check
server app4 check

backend web-servers
server servera server1.local:80 check
server serverb server2.local:80 check

Hi @newbie91

I checked your configuration file.

And I found some mistake in haproxy.cfg file.

You define the

> "default_backend apps"

in above lines
and used “backend app” in as backend configuration.

Please correct

backend apps

instead of " backend app" .

And restart your haproxy services.


ok thanx buddy. already solved, sorry i;m newbie :slight_smile: