Skip to content

Instantly share code, notes, and snippets.

@haroonKhan-10p
Created October 18, 2017 12:44
Show Gist options
  • Save haroonKhan-10p/611d6cc59115cc4a710db0f32437ba85 to your computer and use it in GitHub Desktop.
Save haroonKhan-10p/611d6cc59115cc4a710db0f32437ba85 to your computer and use it in GitHub Desktop.
nginx necessary changes for versioning
if ($http_app_version ~ 3(.*)$) {
proxy_pass http://localhost:3000;
}
if ($http_app_version ~ 2(.*)$) {
proxy_pass http://localhost:3333;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment