Skip to content

Instantly share code, notes, and snippets.

@chaeplin chaeplin/nginx.conf forked from jrom/nginx.conf
Created Jan 10, 2017

What would you like to do?
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
if ($host ~* {
set $test "${test}B";
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
if ($test = ABC) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.