How to get dynamic module in nginx 1.10 in General, and ngx_http_geoip_module in particular?

There is a lot of information how to build from the source code of nginx with support for module ngx_http_geoip_module, but it is all for previous versions of nginx, even when it was impossible to load modules dynamically.

I install nginx 1.10, and it already has the ability to connect ngx_http_geoip_module dynamically:
nginx -V

nginx version: nginx/1.10.0
built by gcc 4.8.4 (4.8.4 Ubuntu-2ubuntu1~14.04.1)
built with OpenSSL 1.0.1 f 6 Jan 2014
TLS SNI support enabled
configure arguments: ... --with-http_geoip_module=dynamic ...

Also in the file /etc/nginx/nginx.conf have what you need to load the module:
load_module modules/ngx_http_geoip_module;

But it turns out that the folder /etc/nginx/modules is empty. I think this is not entirely logical, since when you compile with support for specified modules, these module are compiled into the folder /etc/nginx/modules.

How to be? Where to get ngx_http_geoip_module?
July 9th 19 at 10:39
2 answers
July 9th 19 at 10:41

It is necessary to install the package nginx-module-geoip

sudo apt-get install nginx-module-geoip
: sudo apt-get install nginx-module-geoip

But you have to start clearly explain where you have nginx - annie_Pagac commented on July 9th 19 at 10:44
July 9th 19 at 10:43
Gather the module and put it in a folder.
I saw this article, but I thought that it is necessary to collect nginx completely (not just modules) from source. Right? - annie_Pagac commented on July 9th 19 at 10:46
although it seems that there is:
Up until now, if you wanted to create a module for NGINX you had to compile it into an NGINX binary along with the NGINX source code. The module was loaded with NGINX every time, whether you wanted it or not. For packagers of operating system distributions, this made it very hard to create custom NGINX binaries for every user.
- arianna0 commented on July 9th 19 at 10:49
: well the built-in modules must have a separate file. And you where is nginx? Or hands going? - arianna0 commented on July 9th 19 at 10:52
: Standatnyy for ubuntu installed apt-get install nginx - giovanna.DuBuque commented on July 9th 19 at 10:55
standard 14 Ubuntu no such nginx. - arianna0 commented on July 9th 19 at 10:58

Find more questions by tags Nginx