-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
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
nginx-1.20.2 NOT WORK #80
Comments
Why are you dont want to use |
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 Like this:
In general you are discouraged to use if statements in nginx as maps are more performant. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
###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: