Hi,
On Sat, Jun 22, 2013 at 12:54:39PM +0000, Amyas wrote:
> I am just starting with haproxy on my personal website
> and have a basic setup.
>
> I was wondering if the config file for the "live demo" is available
> anywhere because
No, it's not public.
> I have not been able to figure out if I am missing something because
> I don't see these heading on my frontend status.
>
> IPv4-cached
> IPv4-direct
>
> where do these come from and what setting do I add
> to create these subheadings on a frontend.
You need two things :
1) enable "option socket-stats" so that haproxy keeps stats per-listener
2) name each of your listeners.
Here is what it looks like in the config :
frontend http-in
option socket-stats
bind 10.9.2.3:60080 mss 512 name IPv4-direct
bind 10.9.2.3:60081 mss 512 name IPv4-cached
bind :::80 mss 512 v6only name IPv6-direct
bind 127.0.0.1:60080 name local
bind 127.0.0.1:65443 name local-https accept-proxy ssl crt
/etc/haproxy/demo.1wt.eu.pem ciphers
ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH ecdhe
prime256v1 npn http/1.1
Hoping this helps,
Willy