# Haproxy in front of elastic ECK

**URL:** <https://discourse.haproxy.org/t/haproxy-in-front-of-elastic-eck/9485>\
**Category:** Help!\
**Created:** [February 10, 2024, 3:10am UTC](https://discourse.haproxy.org/t/haproxy-in-front-of-elastic-eck/9485 "2024-02-10T03:10:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saeeddeep](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@saeeddeep](https://discourse.haproxy.org/u/saeeddeep)\
**Post date:** [February 10, 2024, 3:10am UTC](https://discourse.haproxy.org/t/haproxy-in-front-of-elastic-eck/9485/1 "2024-02-10T03:10:12Z")

</div>

Hi  
I need help configure HAProxy in front of Elastic ECK

Using curl, when I connect directly to the backend elasticsearch I got the correct response. example :

```auto
curl -k -L -XGET 'https://192.168.0.10:31800/_cat/nodes?v' -u 'elastic:MyPasswordHere' --header 'Host: elasticsearch.lab.localdomain.com'
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
192.168.90.7 22 51 0 0.23 0.22 0.23 dilrt - lab-main-elasticsearch-es-hot-nodes-3
...snip...

```

But when I connect through haproxy I got Error 404 Not Found.

```auto
curl -k -L -XGET 'https://192.168.0.101:443/_cat/nodes?v' -u 'elastic:MyPasswordHere' --header 'Host: elasticsearch.lab.localdomain.com'
404 page not found

```

Here is my haproxy configuration:

```auto
frontend xeckp
  bind 192.168.0.101:443 ssl crt /etc/ssl/private/server.crt
  default_backend xbackend
backend xbackend
  balance roundrobin
    server eck-workernode-1 192.168.0.10:31800 verify none fall 2 rise 1
    server eck-workernode-2 192.168.0.11:31800 verify none fall 2 rise 1
    server eck-workernode-3 192.168.0.12:31800 verify none fall 2 rise 1

```
