Skip to content

Instantly share code, notes, and snippets.

@andypotanin
Created November 23, 2014 22:37
Show Gist options
  • Select an option

  • Save andypotanin/4a5d5f3ccdcd5a9f1acc to your computer and use it in GitHub Desktop.

Select an option

Save andypotanin/4a5d5f3ccdcd5a9f1acc to your computer and use it in GitHub Desktop.
Basic HAProxy configuration to proxy requests to MAMP running on port 82.
global
log 127.0.0.1 local0 notice
maxconn 2000
defaults
timeout connect 5000
timeout client 10000
timeout server 10000
listen localhost 0.0.0.0:80
mode http
stats enable
stats uri /api/haproxy/stats
stats realm Strictly\ Private
balance roundrobin
option httpclose
option forwardfor
server varnish 127.0.0.1:82 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment