modules and compiling nginx 1.21.3 from source

Ian Hobson hobson42 at gmail.com
Mon Oct 25 18:09:42 UTC 2021


Hi all,

When nginx is installed from the ubuntu 20.4 repos,
it sets up assorted modules in nginx/modules-enabled
When I load it, it loads just fine.

However I need a few extra modules, which I compiled
in using ubuntu 18.04. So, copied the Sources directory over and updated 
the modules that have been updated, and compiled on the new machine. 
make and make install are without errors.

This is the configuration:
./configure --prefix=/etc/nginx \
   --sbin-path=/usr/sbin/nginx \
   --conf-path=/etc/nginx/nginx.conf \
   --error-log-path=/var/log/nginx/error.log \
   --http-log-path=/var/log/nginx/access.log \
   --pid-path=/var/run/nginx.pid \
   --lock-path=/var/run/nginx.lock \
   --http-client-body-temp-path=/var/cache/nginx/client_temp \
   --http-proxy-temp-path=/var/cache/nginx/proxy_temp \
   --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
   --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
   --http-scgi-temp-path=/var/cache/nginx/scgi_temp \
   --user=www-data \
   --group=www-data \
   --with-http_ssl_module \
   --with-openssl=../openssl-1.1.1i \
   --with-http_realip_module \
   --with-http_addition_module \
   --with-http_sub_module \
   --with-http_dav_module \
   --with-http_flv_module \
   --with-http_mp4_module \
   --with-http_gunzip_module \
   --with-http_gzip_static_module \
   --with-http_random_index_module \
   --with-http_secure_link_module \
   --with-http_stub_status_module \
   --with-http_auth_request_module \
   --with-threads \
   --with-stream \
   --with-stream_ssl_module \
   --with-http_slice_module \
   --with-mail \
   --with-mail_ssl_module \
   --with-file-aio \
   --with-http_v2_module \
   --with-pcre=../pcre-8.44 \
   --with-zlib=../zlib-1.2.11 \
   --add-module=../nchan-1.2.12

Now it will not load, because it tries to load the first module in 
modules enabled (brotli) and fails - file missing.

I have worked round it, by moving all the links from modules-enabled to 
modules-available. However my Google-foo has failed me trying to find 
out anything about those new modules.

Can someone point me to the docs, or explain how (and when) to use.

Regards

Ian

-- 
Ian Hobson
Tel (+351) 910 418 473

-- 
This email has been checked for viruses by AVG.
https://www.avg.com



More information about the nginx mailing list