User Tools

Site Tools


решение_haproxy

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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>​
  
решение_haproxy.1723438287.txt.gz · Last modified: 2024/08/12 07:51 by val