# Config : frontend 'GLOBAL' has no 'bind' directive

**URL:** <https://discourse.haproxy.org/t/config-frontend-global-has-no-bind-directive/1858>\
**Category:** Help!\
**Created:** [December 1, 2017, 2:14pm UTC](https://discourse.haproxy.org/t/config-frontend-global-has-no-bind-directive/1858 "2017-12-01T14:14:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinBrauer](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MartinBrauer](https://discourse.haproxy.org/u/MartinBrauer)\
**Post date:** [December 1, 2017, 2:14pm UTC](https://discourse.haproxy.org/t/config-frontend-global-has-no-bind-directive/1858/1 "2017-12-01T14:14:02Z")

</div>

I have a problem with my haproxy.cnf

When I start haproxy I get this warning:  
Starting haproxy: [WARNING] 334/150131 (23086) : config : frontend ‘GLOBAL’ has no ‘bind’ directive. Please declare it as a backend if this was intended.

I have tried different things but I can’t get ried of the warning ☹

My haproxy.cnf looks like this:

global  
log /dev/log local0 warning

```
    #stats socket run/admin.sock mode 660 level admin
    stats timeout 30s
    daemon
    maxconn 120

```

defaults  
log global  
option dontlognull  
timeout connect 5000  
timeout client 50000  
timeout server 50000

############################################################

# HERE

############################################################  
frontend haproxy-here-ptv-xserver-xmap  
bind \*:10010  
mode tcp  
default\_backend haproxy-here-ptv-xserver-xmap-backend

backend haproxy-here-ptv-xserver-xmap-backend  
mode tcp  
balance leastconn  
server hisp2e:16210 hisp2e:16210 check inter 5000  
server hisp2f:16210 hisp2f:16210 check inter 5000

frontend haproxy-here-ptv-xserver-xmap-xmlapi  
bind \*:10014  
mode tcp  
default\_backend haproxy-here-ptv-xserver-xmap-xmlapi-backend

backend haproxy-here-ptv-xserver-xmap-xmlapi-backend  
mode tcp  
balance leastconn  
server hisp2e:16214 hisp2e:16214 check inter 5000  
server hisp2f:16214 hisp2f:16214 check inter 5000

frontend haproxy-here-ptv-xserver-xroute  
bind \*:10030  
mode tcp  
default\_backend haproxy-here-ptv-xserver-xroute-backend

backend haproxy-here-ptv-xserver-xroute-backend  
mode tcp  
balance leastconn  
server hisp2e:16230 hisp2e:16230 check inter 5000  
server hisp2f:16230 hisp2f:16230 check inter 5000

frontend haproxy-here-ptv-xserver-xroute-xml-api  
bind \*:10034  
mode tcp  
default\_backend haproxy-here-ptv-xserver-xroute-xml-api-backend

backend haproxy-here-ptv-xserver-xroute-xml-api-backend  
mode tcp  
balance leastconn  
server hisp2e:16234 hisp2e:16234 check inter 5000  
server hisp2f:16234 hisp2f:16234 check inter 5000

* * *

I really hope someone can help me

BR  
Martin

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [December 4, 2017, 7:08pm UTC](https://discourse.haproxy.org/t/config-frontend-global-has-no-bind-directive/1858/2 "2017-12-04T19:08:11Z")

</div>

There appears to be a bug in the config parsing, when “stats timeout 30s” is defined, but the actual “stats socket” is commented.

Please either comment the stats timeout (–\> #stats timeout 30s) or uncomment the actual stats socket.

---

<div class="post-metadata">

**Author:** ![willy](https://avatars.discourse-cdn.com/v4/letter/w/c2a13f/32.png) [@willy](https://discourse.haproxy.org/u/willy)\
**Post date:** [February 8, 2018, 9:00am UTC](https://discourse.haproxy.org/t/config-frontend-global-has-no-bind-directive/1858/3 "2018-02-08T09:00:15Z")

</div>

Now fixed, thanks for reporting it.
