# HAProxy 1.7 web interface checks for maintenance backends

**URL:** <https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106>\
**Category:** Help!\
**Created:** [February 9, 2018, 1:06pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106 "2018-02-09T13:06:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jose](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jose](https://discourse.haproxy.org/u/jose)\
**Post date:** [February 9, 2018, 1:06pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106/1 "2018-02-09T13:06:37Z")

</div>

Hi there!!

I’m new here and also in the HA world, in version 1.4 on the left of the web view of backends we had a check in order to disable them for maintenance…how can i get this on version 1.7?

Thks!!!

---

<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:** [February 12, 2018, 8:44pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106/2 "2018-02-12T20:44:58Z")

</div>

I don’t see what’s different in haproxy 1.7 compared to 1.4; you need [stats admin](https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-stats%20admin) mode in both. Can you share you configuration please?

---

<div class="post-metadata">

**Author:** ![jose](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jose](https://discourse.haproxy.org/u/jose)\
**Post date:** [February 13, 2018, 12:15pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106/3 "2018-02-13T12:15:52Z")

</div>

Hello  
Thks for your response, the config is pretty simple:

global  
log /dev/log local0  
log /dev/log local1 notice  
chroot /var/lib/haproxy  
stats socket /run/haproxy/admin.sock mode 660 level admin  
stats timeout 30s  
user haproxy  
group haproxy  
daemon

```
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private

# Default ciphers to use on SSL-enabled listening sockets.
# For more information, see ciphers(1SSL). This list is from:
# https://hynek.me/articles/hardening-your-web-servers-ssl-ciphers/
# An alternative list with additional directives can be obtained from
# https://mozilla.github.io/server-side-tls/ssl-config-generator/?server=haproxy
ssl-default-bind-ciphers ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:RSA+AESGCM:RSA+AES:!aNULL:!MD5:!DSS
ssl-default-bind-options no-sslv3

```

defaults  
log global  
mode http  
option httplog  
option dontlognull  
timeout connect 5000  
timeout client 50000  
timeout server 50000  
errorfile 400 /etc/haproxy/errors/400.http  
errorfile 403 /etc/haproxy/errors/403.http  
errorfile 408 /etc/haproxy/errors/408.http  
errorfile 500 /etc/haproxy/errors/500.http  
errorfile 502 /etc/haproxy/errors/502.http  
errorfile 503 /etc/haproxy/errors/503.http  
errorfile 504 /etc/haproxy/errors/504.http

#simple config  
frontend localnodes  
bind \*:8080  
mode http  
default\_backend node1

backend node1

```
stats enable
#stats hide-version
#stats scope .
#stats uri /admin?stats
#stats realm Haproxy\ Statistics
#stats auth admin1:admin1

mode http
balance roundrobin
option forwardfor
cookie SRV_ID insert indirect nocache #prefix
#email-alert mailers mailservers
#email-alert from HAproxy93@sicof.es
#email-alert to jose@etec.es
#http-request set-header X-Forwarded-Port %[dst_port]
#http-request add-header X-Forwarded-Proto https if { ssl_fc }
#option httpchk HEAD / HTTP/1.1\r\nHost:192.168.10.93
#server 82i1 192.168.10.82:28080 check cookie C
#server 82i2 192.168.10.82:28081 check cookie C2
#option http check
server i1 192.168.10.93:28080 check cookie D
server i2 192.168.10.93:28081 check cookie D2

```

listen stats  
bind \*:1936

# listen stats :1936

```
mode http
stats enable
stats hide-version

```

# stats scope www

# stats scope node1

# stats scope node2

```
stats uri /
stats realm Haproxy
stats auth haproxy:haproxy

```

# clitimeout 100s

# srvtimeout 100s

# contimeout 100s

# timeout queue 100s

```
stats refresh 20s

```

Only 2 http nodes, after I’ll need to know how to balance two https servers (forward only)

THKS!!

---

<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:** [February 13, 2018, 3:47pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106/4 "2018-02-13T15:47:58Z")

</div>

Just like I suspected, you did not configure admin mode. Please refer to my previous post where you can find a link to the documentation explaining it.

---

<div class="post-metadata">

**Author:** ![jose](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@jose](https://discourse.haproxy.org/u/jose)\
**Post date:** [February 13, 2018, 3:59pm UTC](https://discourse.haproxy.org/t/haproxy-1-7-web-interface-checks-for-maintenance-backends/2106/5 "2018-02-13T15:59:57Z")

</div>

Solved!!!

Thaks a lot
