SHARE
TWEET

Untitled

a guest Mar 26th, 2019 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global
  2.         log 127.0.0.1:514       local0 info
  3.         log 127.0.0.1:514       local1 notice
  4.         stats socket /run/haproxy/admin.sock mode 660 level admin
  5.         maxconn 4096
  6.         user root
  7.         group root
  8.         daemon
  9.  
  10. defaults
  11.         log     global
  12.         mode    http
  13.         option forwardfor
  14.         option httplog
  15.         #option dontlognull
  16.         maxconn 2000
  17.         timeout connect 5000
  18.         timeout client 50000
  19.         timeout server 50000
  20.  
  21. frontend localhost
  22.     log 127.0.0.1:514 local0 debug
  23.     bind *:80
  24.     mode http
  25.     use_backend web1 if { hdr(host) -i shlomitest1.prv.co.il }
  26.     use_backend web1 if { hdr(host) -i shlomitest.prv.co.il }
  27.     use_backend web2 if { hdr(host) -i cba.com }
  28.     use_backend web2 if { hdr(host) -i fed.com }
  29.     default_backend web1
  30.  
  31. backend web1
  32.     server web1 192.168.30.109:80
  33.  
  34. backend web2
  35.     server web2 google.com:80
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top