Skip to content

Instantly share code, notes, and snippets.

@chand3040
Forked from jrom/nginx.conf
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save chand3040/a0b3e62976d951a4afd4 to your computer and use it in GitHub Desktop.

Select an option

Save chand3040/a0b3e62976d951a4afd4 to your computer and use it in GitHub Desktop.
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
}
if ($test = ABC) {
proxy_pass http://teambox-cms.heroku.com;
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment