Created
November 23, 2014 22:37
-
-
Save andypotanin/4a5d5f3ccdcd5a9f1acc to your computer and use it in GitHub Desktop.
Basic HAProxy configuration to proxy requests to MAMP running on port 82.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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