Advertisement
vik779

Untitled

Sep 25th, 2015
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. defaults
  2.     mode                    http
  3.     log                     global
  4.     option                  httplog
  5.     option                  dontlognull
  6.     option http-server-close
  7.     option forwardfor       except 127.0.0.0/8
  8.     option                  redispatch
  9.     retries                 3
  10.     timeout http-request    20s
  11.     timeout queue           86400
  12.     timeout connect         86400
  13.     timeout client          86400
  14.     timeout server          86400
  15.     timeout http-keep-alive 30
  16.     timeout check           20s
  17.     maxconn                 5000
  18. listen stats :4997
  19.     mode http
  20.     stats enable
  21.     stats hide-version
  22.     stats realm Haproxy\ Statistics
  23.     stats uri /
  24. listen smtp :25
  25. mode tcp
  26. log global
  27. option tcplog
  28. option tcp-check
  29. tcp-check send quit
  30. option smtpchk
  31.  
  32. balance roundrobin
  33. server host1 168.235.86.221:25 check-send-proxy check
  34.  
  35.  
  36.  
  37. #---------------------------------------------------------------------
  38. # main frontend which proxys to the backends
  39. #-------------------------------------------------------------------------------
  40.  
  41.  
  42. #---------------------------------------------------------------------
  43. # static backend for serving up images, stylesheets and such
  44. #-------------------------------------------------------------------
  45.  
  46. #---------------------------------------------------------------------
  47. # round robin balancing between the various backends
  48. #---------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement