Advertisement
Guest User

Untitled

a guest
Jul 24th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. global
  2. user haproxy
  3. group haproxy
  4. pidfile /var/run/haproxy.pid
  5. daemon
  6.  
  7. defaults
  8. log global
  9. mode http
  10. retries 3
  11. balance roundrobin
  12. maxconn 1000
  13. option redispatch
  14. timeout client 10m
  15. timeout server 10m
  16. timeout queue 5s
  17. timeout connect 5s
  18.  
  19. log-format [%t] [%ci/%ft/%b/%s] [%Tq/%Tw/%Tc/%Tr/%Tt] [%ac/%fc/%bc/%sc/%rc] [%sq/%bq] %ST %B %{+Q}r %hr
  20.  
  21. frontend F_4_RPA
  22. bind 192.168.100.200:443 ssl crt /etc/ssl/certs/app_cert.pem
  23. acl APP1_ACL hdr(host) -i app1.x.y
  24. acl APP2_ACL hdr(host) -i app2.x.y
  25. acl APP3_ACL hdr(host) -i app3.x.y
  26. use_backend B_2_APP1 if IGT_ACL
  27. use_backend B_2_APP2 if ADT_ACL
  28. use_backend B_2_APP3 if EXP_ACL
  29.  
  30.  
  31. backend B_2_APP3
  32. reqirep ^([^ ]*)mc=cg(.*) 1mc=cd2
  33. server app301 ...
  34. server app302 ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement