We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
###NOT WORK if ( $request ~* "my_log" ){ testcookie off; }
if ( $remote_addr = 111.11.11.111 ){ #return 308; testcookie off; } ###WORK if ( $request ~* "my_log" ){ #testcookie off; }
if ( $remote_addr = 111.11.11.111 ){ #return 308; #testcookie off; } testcookie off;
how testcookie off in IF... ?
The text was updated successfully, but these errors were encountered:
Why are you dont want to use testcookie_whitelist?
testcookie_whitelist
Sorry, something went wrong.
because whitelist not work
testcookie on/off can't be use in a if block
As described in the README you are suppose to use the testcookie_pass option.
testcookie_pass
Like this:
map $remote_addr $is_allowed_ip { 1.1.1.1 1; default 0; } testcookie_pass $is_allowed_ip;
In general you are discouraged to use if statements in nginx as maps are more performant.
No branches or pull requests
###NOT WORK
if ( $request ~* "my_log" ){ testcookie off; }
if ( $remote_addr = 111.11.11.111 ){
#return 308;
testcookie off;
}
###WORK
if ( $request ~* "my_log" ){ #testcookie off; }
if ( $remote_addr = 111.11.11.111 ){
#return 308;
#testcookie off;
}
testcookie off;
how testcookie off in IF... ?
The text was updated successfully, but these errors were encountered: