Skip to content

Instantly share code, notes, and snippets.

@bscott
Created September 6, 2013 05:45
Show Gist options
  • Select an option

  • Save bscott/6459986 to your computer and use it in GitHub Desktop.

Select an option

Save bscott/6459986 to your computer and use it in GitHub Desktop.
nginx route to backend by source ip.
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