FireBurn

Untitled

Mar 3rd, 2020
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. frontend proxyfront
  2. mode http
  3. bind *:8080
  4.  
  5. acl dst1_dst req.hdr(Host) -m beg dest1.com
  6. acl dst2_dst req.hdr(Host) -m beg dest2.com
  7. acl src1_src src 4.5.6.7
  8. use_backend back_back1 if dst1_dst OR dst2_dst OR src1_src
  9.  
  10. acl src2_src src 1.2.3.4
  11. use_backend back_back2 if src2_src
  12.  
  13. backend back_back1
  14. mode http
  15. option httpchk GET http://127.0.0.1:11000/probe.html HTTP/1.0
  16. option forwardfor
  17. option httpclose
  18. option forwardfor header X-Client
  19. server server_1 server1.example.com:11080 check send-proxy
  20. server server_2 server2.example.com:11080 check send-proxy
  21.  
  22. backend back_back2
  23. mode http
  24. option httpchk GET http://127.0.0.1:10000/probe.html HTTP/1.0
  25. option forwardfor
  26. option httpclose
  27. option forwardfor header X-Client
  28. server server_3 server3.example.com:10080 check send-proxy
  29. server server_4 server4.example.com:10080 check send-proxy
Advertisement
Add Comment
Please, Sign In to add comment