This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
решение_haproxy [2024/08/12 07:51] val |
решение_haproxy [2026/08/21 15:53] (current) val |
||
|---|---|---|---|
| Line 62: | Line 62: | ||
| # journalctl -f | grep proxy | # journalctl -f | grep proxy | ||
| # ###haproxy -f /etc/haproxy/haproxy.cfg -d | # ###haproxy -f /etc/haproxy/haproxy.cfg -d | ||
| + | |||
| + | # echo "show stat" | socat stdio /run/haproxy/admin.sock | cut -d ',' -f 1,2,18 | ||
| haproxy# curl https://localhost/ -H "Host: gowebd.corpX.un" -k | haproxy# curl https://localhost/ -H "Host: gowebd.corpX.un" -k | ||
| + | </code> | ||
| + | |||
| + | <code> | ||
| + | listen stats | ||
| + | bind *:8404 | ||
| + | mode http | ||
| + | stats enable | ||
| + | stats uri /stats | ||
| + | stats refresh 10s | ||
| + | stats hide-version | ||
| + | # stats auth admin:SecurePassword123 | ||
| </code> | </code> | ||