Skip to content

Instantly share code, notes, and snippets.

@wzhliang
Created May 4, 2020 03:05
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 wzhliang/4bf9c538ca80e75144ba1f43d8a843db to your computer and use it in GitHub Desktop.
Save wzhliang/4bf9c538ca80e75144ba1f43d8a843db to your computer and use it in GitHub Desktop.
nginx fallback example
server {
location / {
proxy_pass http://new_server;
error_page 404 500 502 503 504 = @fallback;
}
location @fallback {
proxy_pass http://old_server;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment