This is actually not true.
`libnginx-mod-http-geoip` contains the compiled **dynamic module** form
of GeoIP, which is one of the few modules that works as a dynamic
module.
In `debian/rules`, we have this section controlling the configure flags
for Extras:
extras_configure_flags := \
$(common_configure_flags) \
--with-http_addition_module \
--with-http_flv_module \
--with-http_geoip_module=dynamic \
--with-http_gunzip_module \
--with-http_gzip_static_module \
--with-http_image_filter_module=dynamic \
--with-http_mp4_module \
--with-http_perl_module=dynamic \
--with-http_random_index_module \
--with-http_secure_link_module \
--with-http_sub_module \
--with-http_xslt_module=dynamic \
--with-mail=dynamic \
--with-mail_ssl_module \
--with-stream=dynamic \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--add-dynamic-module=$(MODULESDIR)/http-headers-more-filter \
--add-dynamic-module=$(MODULESDIR)/http-auth-pam \
--add-dynamic-module=$(MODULESDIR)/http-cache-purge \
--add-dynamic-module=$(MODULESDIR)/http-dav-ext \
--add-dynamic-module=$(MODULESDIR)/http-ndk \
--add-dynamic-module=$(MODULESDIR)/http-echo \
--add-dynamic-module=$(MODULESDIR)/http-fancyindex \
--add-dynamic-module=$(MODULESDIR)/nchan \
--add-dynamic-module=$(MODULESDIR)/http-lua \
--add-dynamic-module=$(MODULESDIR)/rtmp \
--add-dynamic-module=$(MODULESDIR)/http-uploadprogress \
--add-dynamic-module=$(MODULESDIR)/http-upstream-fair \
--add-dynamic-module=$(MODULESDIR)/http-subs-filter
Note the specific line: --with-http_geoip_module=dynamic
This built the .so separately in a way that can just be 'imported'.
Indeed, when you take the `nginx -V` output, put it to a file, and then
run `grep` over it, you get the reference to GeoIP with the
aforementioned lines.
Also, you can simply **test** GeoIP module commands by downloading the
legacy .dat format of the GeoIP country db, put it somewhere on your
system, and point nginx at it with `geoip_country
/usr/local/share/GeoIP/GeoIP.dat` into `/etc/nginx/conf.d/geoip.conf`
and then run `nginx -t`, which will show you that the command did not
error. Had the GeoIP module not been compiled and included, you would
have gotten an "unknown directive" error. (Note the path I put for
`geoip_country` is the default path MaxMind suggests for installing the
databases to)
Ultimately, not a bug, and the GeoIP module is actually present.
** Changed in: nginx (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1768091
Title:
nginx-extras missing geoip (18.04)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1768091/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs