Skip to content

Instantly share code, notes, and snippets.

@sansmischevia
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sansmischevia/cf425d5ffe09f824cb27 to your computer and use it in GitHub Desktop.
Save sansmischevia/cf425d5ffe09f824cb27 to your computer and use it in GitHub Desktop.
Safe ELB proxy_pass with nginx
location / {
set $backend "<ELB_A_RECORD?";
proxy_pass http://$backend$uri;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment