Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #---------------------------------------------------------------------
- # Example configuration. See the full configuration manual online.
- #
- # http://www.haproxy.org/download/1.7/doc/configuration.txt
- #
- #---------------------------------------------------------------------
- global
- maxconn 20000
- user haproxy
- chroot /usr/share/haproxy
- pidfile /run/haproxy.pid
- daemon
- frontend main
- bind :80
- mode tcp
- maxconn 8000
- use_backend socksproxy if !{ req.proto_http }
- default_backend nginx
- backend nginx
- mode http
- server static 127.0.0.1:8885
- backend socksproxy
- mode tcp
- server socksproxy1 127.0.0.1:53
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement