Skip to content

Instantly share code, notes, and snippets.

@scottjacobsen
Created March 20, 2012 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottjacobsen/2141453 to your computer and use it in GitHub Desktop.
Save scottjacobsen/2141453 to your computer and use it in GitHub Desktop.
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
debug
#quiet
defaults
log global
option dontlognull
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
listen next_proxy
mode http
bind *:80
server server1 ip-10-244-26-36.ec2.internal
listen next_ssl_proxy
bind *:443
mode tcp
server server1 ip-10-244-26-36.ec2.internal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment