一、配置
frontend secure //自定義一個frontend,也可以放在listen或者backend中 bind *:8888 //監聽的ip端口號 stats enable //開關 stats uri /admin?admin //訪問的uri ip:8888/admin?admin stats auth admin:admin //認證用戶名和密碼 stats hide-version //隱藏HAProxy的版本號 stats admin if TRUE //管理界面,如果認證成功了,可通過webui管理節點 stats refresh 30s //統計頁面自動刷新時間
來源:https://blog.csdn.net/weixin_34038652/article/details/92787196
