# Httpchk HTTP/1.1 host

**URL:** <https://discourse.haproxy.org/t/httpchk-http-1-1-host/6557>\
**Category:** Help!\
**Created:** [May 10, 2021, 7:40pm UTC](https://discourse.haproxy.org/t/httpchk-http-1-1-host/6557 "2021-05-10T19:40:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AtherionGG](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@AtherionGG](https://discourse.haproxy.org/u/AtherionGG)\
**Post date:** [May 10, 2021, 7:40pm UTC](https://discourse.haproxy.org/t/httpchk-http-1-1-host/6557/1 "2021-05-10T19:40:56Z")

</div>

Hi I am trying to setup a http health check and I am trying to set the HOST as the server ip and port

Example

```auto
backend staging
        balance source

        option forwardfor
        http-request set-header X-Forwarded-Port %[dst_port]
        http-request add-header X-Forwarded-Proto https if { ssl_fc }

        option httpchk GET /health "HTTP/1.1\r\nHost: 10.10.10.22:4431"
        server v202 10.10.10.22:4431 check ssl verify none
        server v203 10.10.10.23:4431 check ssl verify none

```

This works for setting the host on v202 but not on v203. Is there a way I can have it set from the server line host:port

Thanks,  
Scott

---

<div class="post-metadata">

**Author:** ![singh-l](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/singh-l/32/1481_2.png) [@singh-l](https://discourse.haproxy.org/u/singh-l)\
**Post date:** [May 11, 2021, 7:45am UTC](https://discourse.haproxy.org/t/httpchk-http-1-1-host/6557/2 "2021-05-11T07:45:38Z")

</div>

your checkup has specific address, so it is checking that only

just keep generic  
like:  
option httpchck OPTIONS /

---

<div class="post-metadata">

**Author:** ![AtherionGG](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@AtherionGG](https://discourse.haproxy.org/u/AtherionGG)\
**Post date:** [May 11, 2021, 12:41pm UTC](https://discourse.haproxy.org/t/httpchk-http-1-1-host/6557/3 "2021-05-11T12:41:22Z")

</div>

That will send HTTP/1.0 with no host.

I was hoping there might be something like

```auto
option httpchk GET /health "HTTP/1.1\r\nHost: %[source_addr]"

```
