jasenux n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 22 Jul 2007 Posts: 12
|
Posted: Wed Jan 07, 2009 3:50 am Post subject: Haproxy statistics page - help needed |
|
|
hello,
first, happy new year!!
i need some help on haproxy. i have setup haproxy + vrrp + apache on 2 of my gentoo boxes (10.4.40.2 and 10.4.40.3). all is running fine, they are sharing 10.4.40.1, any inbound http requests will be round ribbon balanced to the 2 nodes... and it is working ok.
i have setup a stat page for viewing the statistics, but it is currently over http. am using acl to control which ip can access the stat page, but on top of that i want ssl. can any one help me please?
Code: |
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
chroot /var/cache/haproxy
user nobody
group nobody
daemon
defaults
log global
mode http
option httplog
option dontlognull
retries 3
option redispatch
option httpclose
maxconn 2048
contimeout 5000
clitimeout 30000
srvtimeout 30000
listen intranet
bind 10.4.40.1:80
mode http
stats enable
balance roundrobin
maxconn 2048
cookie JSESSIONID prefix
option forwardfor
option httpchk GET /keepalive/health.html
option abortonclose
option nolinger
acl allowed-method method GET HEAD POST OPTIONS CONNECT
block unless allowed-method
server pri 10.4.40.2:80 cookie PRI check inter 2s rise 2 fall 3 minconn 32 maxconn 1024 maxqueue 512
server pri 10.4.40.3:80 cookie PRI check inter 2s rise 2 fall 3 minconn 32 maxconn 1024 maxqueue 512
listen stats
bind 10.4.40.1:8443
mode http
balance uri
stats uri /
stats realm Statistics\ Page
stats scope .
stats scope intranet
stats auth monitor:monitor
acl office_addr src 10.4.60.0/24
block unless office_addr
|
this is what i want: https://admin.fedoraproject.org/haproxy/proxy1/
thank you. |
|