Skip to content

Instantly share code, notes, and snippets.

@johan--
Forked from jrom/nginx.conf
Last active August 29, 2015 14:11
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 johan--/c169d40d8b7b3cf8e418 to your computer and use it in GitHub Desktop.
Save johan--/c169d40d8b7b3cf8e418 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