Skip to content

Instantly share code, notes, and snippets.

@mwinckler
Created December 19, 2015 21:58
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 mwinckler/6e8effb73dda755e2b85 to your computer and use it in GitHub Desktop.
Save mwinckler/6e8effb73dda755e2b85 to your computer and use it in GitHub Desktop.
Nginx: proxy all requests to new server
location / {
proxy_pass http://<ip-address-of-new-server>;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_buffering off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment