Skip to content

Instantly share code, notes, and snippets.

@merltron-pa
Last active October 31, 2019 11:09
Show Gist options
  • Save merltron-pa/7c6fe7038ae4e70ccd9e04856cfc102d to your computer and use it in GitHub Desktop.
Save merltron-pa/7c6fe7038ae4e70ccd9e04856cfc102d to your computer and use it in GitHub Desktop.
NGINX Traffic Splits Article: nginx-config-snippet5.conf
# overwrite the upstream by appending "?force_upstream=oldcms" to the URL
map $arg_force_upstream $deliver_upstream {
default $chosen_upstream;
"oldcms" "upstream_cms_old";
"sap" "upstream_sap";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment