Just a quick note more for myself than anyone else. I needed to test a particular module for nginx but I didn’t have the build pre-reqs set up properly.
I’m slowly getting used to using Docker where I’d normally spin up additional VMs, so these are the commands:
docker run -it debian:latest /bin/bash # apt update && apt install -y git build-essential # cd /usr/src && git clone --depth=1 https://github.com/nginx/nginx # git clone --depth=1 https://github.com/yaoweibin/ngx_http_substitutions_filter_module # This is the bit most of the tutorials miss! The configure script is not where you'd normally expect # cd nginx # ./auto/configure --without-http_rewrite_module --without-http_gzip_module --add-module=../ngx_http_substitutions_filter_module # make -j
Note the –without lines make this build pretty useless – don’t use it for anything important!
Another oddity is that the output binaries are in ./obj