Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. #---------------------------------------------------------------------
  2. # Example configuration. See the full configuration manual online.
  3. #
  4. # http://www.haproxy.org/download/1.7/doc/configuration.txt
  5. #
  6. #---------------------------------------------------------------------
  7.  
  8. global
  9. maxconn 20000
  10. user haproxy
  11. chroot /usr/share/haproxy
  12. pidfile /run/haproxy.pid
  13. daemon
  14.  
  15. frontend main
  16. bind :80
  17. mode tcp
  18. maxconn 8000
  19. use_backend socksproxy if !{ req.proto_http }
  20. default_backend nginx
  21.  
  22. backend nginx
  23. mode http
  24. server static 127.0.0.1:8885
  25.  
  26. backend socksproxy
  27. mode tcp
  28. server socksproxy1 127.0.0.1:53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement