Answer the question
In order to leave comments, you need to log in
How to deny access to the site to CIS countries in the NGINX settings?
How to deny access to the site using nginx?
I tried to do it according to this,
but when executed, it sudo apt-get install nginx-module-geoip
writes
Unable to locate package nginx-module-geoip
nginx -V
appeared --with-http_geoip_module=dynamic
# Нету даже папок таки не то что файлов
mv /usr/share/GeoIP/GeoIP.dat /usr/share/GeoIP/GeoIP.dat_bak
cd /usr/share/GeoIP/
# Сервер не отвечает. Видимо устаревшая информация
wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz
gunzip GeoIP.dat.gz
nginx/1.14.0 (Ubuntu)
Answer the question
In order to leave comments, you need to log in
/usr/share/GeoIP/GeoIP.dat
In fact, the base is not included with the module and it is paid, you need to say it yourself.
or try this
https://github.com/sherpya/geolite2legacy
Did this article.
https://faun.pub/total-nginx-monitoring-with-appli...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question