Created
December 26, 2011 04:38
-
-
Save agibralter/1520537 to your computer and use it in GitHub Desktop.
This file contains 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
# haproxy => [a few app servers] | |
# more specifically: | |
# haproxy => [nginx => unicorn (502 when busy)] | |
# Will this try a second app server when the first returns 502? | |
upstream haproxy { | |
server 127.0.0.1:85; | |
server 127.0.0.1:85 backup; | |
} | |
server { | |
proxy_pass http://haproxy; | |
proxy_next_upstream http_502; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment