The request is going to the container(s) of the target service and the port defined in the health check. You can set the Host header though if you change the version to HTTP/1.1, which may be what you’re actually trying to do…
Our system has been designed so that this service is essentially just a consumer of messages from jms. It has no ports open, and thus nothing to check. As such we have coded an intermediate service that can query the state of this service and thats what i want to rely on. Hope this helps you to understand what I am looking to achieve.
You put a cr/lf in the request line and then the header, as is traditional in HAProxy. If you don’t know how to do something, doing it in the UI and looking at the generated compose file is usually a good start.
GET /integration-server/agents/health/check HTTP/1.1
Host: blah.com