-
-
Save vnc4f/7f5bc4ecb577d1e67bcd085f7fb08bc0 to your computer and use it in GitHub Desktop.
nginx hack for multiple conditions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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