Hello!

I have a frontend/backend that looks kind of like below, obviously very 
simplified.



frontend myhost-frontend
    bind *:443 ssl crt /usr/local/ssl/certs/host.pem
    mode http
    log global

    acl request_monitor_cluster path_beg /monitor/cluster
    use_backend monitor_cluster if request_monitor_cluster

    # otherwise send requests to this backend
    default_backend myhost-backend

backend monitor_cluster
    mode http
    log global
    balance source
    hash-type consistent
    option httpchk GET /haproxy/alive.txt
    http-check disable-on-404

    server host01 host01.example.com:1234 check
    server host02 host02.example.com:1234 check
    server host03 host03.example.com:1234 check



The key thing here is that if someone goes to 
https://myhost.example.com/monitor/cluster they access the monitoring system 
from some arbitrary host in the cluster. I'd like to be able to do something 
where if I go to, say, https://myhost.example.com/monitor/node/host01 that I 
can go to the monitoring system on a specific node.

My first thought is that I would have to make three more backends, one for each 
node in the cluster, and each backend would only have one server in it. If 
there is a way that I can direct a request to a specific server in a backend 
rather than duplicating backends with different server lists that would be 
ideal. Is that possible?

Reply via email to