scripts and tools to administer the lingy.in public unix / tilde
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1007B

  1. global
  2. log 127.0.0.1 local0 debug
  3. maxconn 1024
  4. chroot /var/haproxy
  5. uid 604
  6. gid 604
  7. daemon
  8. pidfile /var/run/haproxy.pid
  9. defaults
  10. log global
  11. mode http
  12. option httplog
  13. option dontlognull
  14. option redispatch
  15. retries 3
  16. maxconn 2000
  17. # Make sure to change user and password
  18. # before enabling this
  19. #listen haproxy_stats
  20. # bind *:25010
  21. # mode http
  22. # log global
  23. #
  24. # maxconn 10
  25. #
  26. # clitimeout 100s
  27. # srvtimeout 100s
  28. # contimeout 100s
  29. # timeout queue 100s
  30. #
  31. # stats enable
  32. # stats hide-version
  33. # stats refresh 30s
  34. # stats show-node
  35. # stats auth SOMEUSER:SOMEPASSWORD
  36. # stats uri /haproxy?stats
  37. frontend haproxy
  38. bind *:80
  39. acl tilde_uri path_beg /~
  40. use_backend userdir_httpd if tilde_uri
  41. default_backend req_python
  42. backend req_python
  43. option forwardfor
  44. server py 127.0.0.1:5000 check
  45. backend userdir_httpd
  46. option forwardfor
  47. server apache2 127.0.0.1:5001 check