Skip to content

Instantly share code, notes, and snippets.

@dainiax
Forked from jrom/nginx.conf
Created February 14, 2018 08:43
Show Gist options
  • Save dainiax/fcfe6ecf85ee4a556594f8942a15b46c to your computer and use it in GitHub Desktop.
Save dainiax/fcfe6ecf85ee4a556594f8942a15b46c to your computer and use it in GitHub Desktop.

Revisions

  1. @jrom jrom revised this gist Feb 8, 2012. 1 changed file with 16 additions and 13 deletions.
    29 changes: 16 additions & 13 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,16 @@

    if ($request_uri = /) {
    set $test A;
    }

    if ($http_cookie !~* "auth_token") {
    set $test "${test}B";
    }

    if ($test = AB) {
    proxy_pass http://teambox-cms.heroku.com;
    break;
    }
    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;
    }
  2. @jrom jrom created this gist Feb 7, 2012.
    13 changes: 13 additions & 0 deletions nginx.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@

    if ($request_uri = /) {
    set $test A;
    }

    if ($http_cookie !~* "auth_token") {
    set $test "${test}B";
    }

    if ($test = AB) {
    proxy_pass http://teambox-cms.heroku.com;
    break;
    }