# Backend app has no server available!

**URL:** <https://discourse.haproxy.org/t/backend-app-has-no-server-available/3970>\
**Category:** Help!\
**Created:** [June 27, 2019, 7:03am UTC](https://discourse.haproxy.org/t/backend-app-has-no-server-available/3970 "2019-06-27T07:03:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newbie91](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/newbie91/32/860_2.png) [@newbie91](https://discourse.haproxy.org/u/newbie91)\
**Post date:** [June 27, 2019, 7:03am UTC](https://discourse.haproxy.org/t/backend-app-has-no-server-available/3970/1 "2019-06-27T07:03:30Z")

</div>

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 = 192.168.12.100 \<== HAproxy I want install in this server
2. Bacnkend server = 192.168.10.100
3. Backend server2 = 192.168.11.100

# haproxy.cfg

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 127.0.0.1:4331 check

#---------------------------------------------------------------------

# round robin balancing between the various backends

#---------------------------------------------------------------------  
backend app  
balance roundrobin  
server app1 127.0.0.1:5001 check  
server app2 127.0.0.1:5002 check  
server app3 127.0.0.1:5003 check  
server app4 127.0.0.1:5004 check

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

---

<div class="post-metadata">

**Author:** ![Kiran](https://avatars.discourse-cdn.com/v4/letter/k/13edae/32.png) [@Kiran](https://discourse.haproxy.org/u/Kiran)\
**Post date:** [July 1, 2019, 6:28am UTC](https://discourse.haproxy.org/t/backend-app-has-no-server-available/3970/2 "2019-07-01T06:28:53Z")

</div>

> [@newbie91](#):
>
> apps

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.

Thanks,  
Kiran

---

<div class="post-metadata">

**Author:** ![newbie91](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/newbie91/32/860_2.png) [@newbie91](https://discourse.haproxy.org/u/newbie91)\
**Post date:** [July 2, 2019, 2:17am UTC](https://discourse.haproxy.org/t/backend-app-has-no-server-available/3970/3 "2019-07-02T02:17:49Z")

</div>

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