Skip to content

Instantly share code, notes, and snippets.

@xetorthio
Created November 8, 2011 18:29
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 xetorthio/1348641 to your computer and use it in GitHub Desktop.
Save xetorthio/1348641 to your computer and use it in GitHub Desktop.
server {
listen 8080;
server_name xxx.yyy.com;
location / {
error_page 500 502 503 @fallback;
proxy_pass http://upstream1;
}
location @fallback {
proxy_pass http://upstream2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment