Haproxy | HAProxy | Web load Balancing

#---------------------------------------------------------------------
# Example configuration for a possible web application.  See the
# full configuration options online.
#
#   http://haproxy.1wt.eu/download/1.3/doc/configuration.txt
#
#---------------------------------------------------------------------

#---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
    log         127.0.0.1 local2
    chroot      /var/lib/haproxy
    pidfile     /var/run/haproxy.pid
    maxconn     4000
    user        haproxy
    group       haproxy
    daemon

#---------------------------------------------------------------------
# common defaults that all the 'listen' and 'backend' sections will
# use if not designated in their block
#---------------------------------------------------------------------


#---------------------------------------------------------------------
# main frontend which proxys to the backends
#---------------------------------------------------------------------

    defaults
    log  global
    option tcplog
    mode     tcp
    clitimeout  60000
    srvtimeout  30000
    contimeout  4000
    retries  3
    option redispatch
    option   httpclose
   
    listen  load_balanced   192.168.2.233:80,192.168.2.233:443,777.777.777.777:80,555.555.555.555:443
    balance  source
    option   ssl-hello-chk
    option   forwardfor
   
    server site1.mazaredo1.com-virtual 999.999.999.999 weight 1 maxconn 5000 check
    server site2.mazaredo2.com-original 888.888.888.888 weight 1 maxconn 5000 check
   
    listen  admin_stats :8080
    mode     http
    stats uri   /my_stats
    stats realm     Global\ statistics
    stats auth  username:password

Comments

Popular posts from this blog

Water Wonder Resort

Redirect apache request to another domain

Can't use proxy because no authentication schemes are fully configured.