Created
September 6, 2013 05:45
-
-
Save bscott/6459986 to your computer and use it in GitHub Desktop.
nginx route to backend by source ip.
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
| upstream app_test_4 { | |
| server 10.249.67.97:10128; | |
| server 10.254.73.6:10128; | |
| } | |
| if ($remote_addr = "24.43.7.27") { | |
| proxy_pass http://app_test_4/; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment