Detailed profiles of haproxy listen

Configuration example:

listen admin_stats
    bind 0.0.0.0:9188
    mode http
    log 127.0.0.1 local0 err
    stats refresh 30s
    stats uri /haproxy-status
    stats realm welcome login\ Haproxy
    stats auth admin:admin~!@
    stats hide-version
    stats admin if TRUE

This section is defined by keyword listen instance named "admin_stats", in fact, is the definition of a monitoring page HAProxy, the meaning of each option are as follows:

stats refresh: Set HAProxy monitoring statistics page automatically refresh time.

stats uri: Set URL path HAProxy monitoring statistics page, can be arbitrary. For example, specifying "statsuri / haproxy-status", you can http: // IP: 9188 / haproxy -status view.

stats realm: Set the text box on the password login HAProxy statistics page message.

stats auth: Set login HAProxy statistics page of user name and password. User names and passwords divided by a colon. You can set up multiple user names and passwords for the monitoring page, one per line.

stats hide-version: used to hide the version information HAProxy on the statistics page.

stats admin if TRUE: By setting this option, you can manually enable or disable the real back-end server on the monitoring page, only valid in haproxy1.4.9 later version.

Guess you like

Origin www.cnblogs.com/yyxianren/p/10943078.html