Score:0

haproxy: close or change port 80 of stats page

cn flag

The http-port has to be available for another usage.
Port 80 of the stats-page has to be closed or moved to another port.
Removing mode http in the default section disables the page. echo >/dev/tcp/hostname/80 returns '0' -> port 80 is already reachable.

Score:0
pe flag

You havent posted your HAProxy config file?

You should just be able to specify what port you want the stats on i.e.

listen stats
bind *:8080
        mode http
        option forwardfor
        option httpclose
        stats enable
        stats show-legends
        stats refresh 5s
        stats uri /stats
        stats realm Haproxy\ Statistics
        stats auth loadbalancer:loadbalancer
        stats admin 

Which you would access with username 'loadbalancer' and password of 'loadbalancer' at the url:

http://myipaddress:8080/stats

Peedy avatar
cn flag
Thanks for your sample. This method is, what I've been looking for.
Score:0
cn flag

My solution:

listen stats
  bind *:9010
  bind :::9010 v6only
  mode http
  option forwardfor
  option httpclose
  stats enable
  stats uri     /stats
  stats refresh 5s
  stats show-legends
  stats realm Haproxy\ Statistics
  stats auth loadbalancer:loadbalancer
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.