@gilchristt wrote:
I’ve a feeling I’m missing something obvious here but I can’t seem to work out how to add the HAProxy hostname as a HTTP Header.
Scenario is that I’ve a pair of HAProxy 2.0 servers running on Debian in Azure. They’re not in a cluster, Azure Load Balancer is handling the front end HA and the application database is handling the statefulness so I don’t need them to be aware of each other (I think).
I’ve no major need to know the HAProxy hostname, I’m not using it for any purpose other than troubleshooting but it seems odd that there doesn’t seem to be a straightforward way to add this as a host header (which makes me think I’m missing something obvious)
I’m familiar with the ‘http-send-name-header’ which can send the target server name and obviously I could add a manual header to each HAProxy server’s individual config but I’m keen to keep the config standard across all front end servers.
Any thoughts welcome
Posts: 1
Participants: 1