http://haproxy.1wt.eu/download/1.3/src/Beta/haproxy-1.3.16-rc2.tar.gz
        
        After untar, this is what I ran
        
        make TARGET=linux26 PREFIX=/usr/local/site/haproxy install
        
        config attached
        
        haproxy is run as haproxy -f <config-file>
        
        Config designed to run from foreground so we can use supervise to
        control. There is an init file in the tarball, you can adjust the config
        appropiately
vi conf/haproxy.cfg-old
defaults
  maxconn 16000
  timeout server  50000
  balance roundrobin
frontend api *:9090
  timeout client 50000
  mode http
  acl secure_content url_sub foobar
  block  if secure_content
  default_backend glassfish
backend glassfish
  timeout connect 5000
  mode http
  option forwardfor
  #option httpchk HEAD / HTTP/1.0
  server dserver1 127.0.0.1:80 check inter 1000
  server dserver2 127.0.0.1:9080 check inter 1000
	
posted on 2009-07-06 18:22 
Blog of JoJo 阅读(141) 
评论(0)  编辑  收藏