Answer the question
In order to leave comments, you need to log in
GeoIP NGINX not working?
Good evening, tell me what I'm doing wrong in the http block in the config file nginx.conf added
geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allowed_country {
default yes;
LV no;
}
if ($allowed_country = no) {
return 403;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question