We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Welcome to the ngx_http_geoip2_module wiki!
Download Nginx Source
nginx_ver=`nginx -v 2>&1 | awk -F/ '{print $2}'` wget http://nginx.org/download/nginx-$nginx_ver.tar.gz tar xvzf nginx-$nginx_ver.tar.gz
Compile from Source
apt update apt -y install libmaxminddb0 libmaxminddb-dev mmdb-bin cd /opt wget https://github.com/leev/ngx_http_geoip2_module/archive/3.4.zip unzip 3.4.zip nginx_ver=`nginx -v 2>&1 | awk -F/ '{print $2}'` cd nginx-$nginx_ver ./configure --with-compat --add-dynamic-module=../ngx_http_geoip2_module-3.4 make modules cp objs/ngx_http_geoip2_module.so /etc/nginx/modules