K
K
kkoshakk2016-08-19 20:50:25
Nginx
kkoshakk, 2016-08-19 20:50:25

How to connect a module to NGINX?

I found this manual: https://github.com/openresty/headers-more-nginx-mo... I can't figure it out, it says:
Download the latest version of the release tarball of this module from headers-more-nginx -module file list.
Starting from NGINX 1.9.11, you can also compile this module as a dynamic module, by using the --add-dynamic-module=PATH option instead of --add-module=PATH on the ./configure command line above. And then you can explicitly load the module in your nginx.conf via the load_module directive, for example,
load_module /path/to/modules/ngx_http_headers_more_filter_module.so;
I still need to compile or just create a modules folder, download the module itself there and simply write load_module /path/to/modules/ngx_http_headers_more_filter_module.so in the configuration file;

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
Fixid, 2016-08-19
@kkoshakk

Depending on what form the module, if src, build and connect. A couple of times I saw already assembled modules, then just connect them in the config.
Specifically, ngx_http_headers_more_filter_module.so on github in src, so you have to build

L
Lynn "Coffee Man", 2016-08-19
@Lynn

You have already been answered. Do not brainwash anyone, install the nginx-extras package

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question