I'm using HAProxy for load balancing and would like to make the stats page visible for certain people. I have already configured this to a point where the users must log into the website first and then under the status page of the site will load an iframe of HAProxy's status. However, I am wanting to remove the top portion of the page and just have the server statistics. Is this even possible?
You can do this directly in HA Proxy
You can set whatever URI you wish.
You can find full details in
Look near: stats auth :
Have you dug into the source directory to see where the HTML lives? You could just grep the source directory for some relevant phrases (i.e.: what it says on the stats page) and it'll turn up any files that contain them. Then you can modify to your heart's content. That's the most foolproof way. Another way, though not recommended, is to fetch the stats page via AJAX using something like jQuery. Then you can dynamically and programmatically remove the parts you don't want before inserting them into an iframe or div element. I still say go with my first suggestion.