Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4718

Httpchk HTTP/1.1 host

$
0
0

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

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

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4718

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>