Skip to content

Instantly share code, notes, and snippets.

@mohit
Created January 10, 2014 07:00
Show Gist options
  • Save mohit/8348004 to your computer and use it in GitHub Desktop.
Save mohit/8348004 to your computer and use it in GitHub Desktop.
global
daemon
user haproxy
group haproxy
maxconn 4096
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
chroot /var/lib/haproxy
stats socket /var/haproxy/stats.sock mode 666 level admin
defaults
log global
mode http
option httplog
option dontlognull
option forwardfor
timeout connect 1m
timeout client 1m
timeout server 1m
balance roundrobin
retries 3
frontend http-in
bind 0.0.0.0:80
mode http
log global
option httplog
no option checkcache
http-request set-log-level debug
http-response set-log-level debug
default_backend ssl_website
backend ssl_website
mode http
log global
option forwardfor
option httplog
no option checkcache
http-request set-log-level debug
http-response set-log-level debug
reqirep Host Host:\ ssl_website_something.herokuapp.com
server node2 ssl_website_something.herokuapp.com:443 check port 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment