Tag: geoip

安装GeoIP模块,用于Docker的最新NGINX

我正在尝试创build一个包含GeoIP模块的nginx服务的docker镜像。 据我所知,运行apt-get install nginx与任何标志没有帮助包含–with-http_geoip_module模块在nginx安装。 所以我试图从nginx源码安装它 add-apt-repository ppa:nginx/development -y \ && echo "deb-src http://ppa.launchpad.net/nginx/development/ubuntu xenial main" >> /etc/apt/sources.list \ && apt-get update \ && apt-get build-dep nginx -y \ && cd /opt \ && mkdir tempnginx \ && cd tempnginx \ && apt-get source nginx \ 等等等等 GeoIP不能正常工作,因为我试图把它放在日志上,就像这样: nginx.conf user www-data; worker_processes 1; load_module modules/ngx_http_geoip_module.so; error_log […]