Answer the question
In order to leave comments, you need to log in
What is nginx complaining about?
Good afternoon. There is such a construction, which comes from nginx abusive exhaust:
server {
...
location / {
if ($http_referer != "demo.company.ru" && $remote_addr != 192.168.88.0/24) {
return 404;
}
}
Answer the question
In order to leave comments, you need to log in
nginx complains &&
because logical and and or are not supported in the if
.
This is just one of the many reasons why map
you just have to use :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question