# https://my.oschina.net/u/3375733/blog/1827778
# https://blog.csdn.net/qq_40015566/article/details/90169882
# https://newsn.net/say/nginx-subs_filter.html
cd ~/downloads
if false ; then
wget https://github.com/yaoweibin/ngx_http_substitutions_filter_module/archive/v0.6.4.zip
wget http://nginx.org/download/nginx-1.18.0.tar.gz
wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
tar -zxvf nginx-1.18.0.tar.gz
unzip v0.6.4.zip
tar -zxvf openssl-1.1.1j.tar.gz
fi
cd nginx-1.18.0
./configure \
--with-http_stub_status_module \
--with-http_ssl_module \
--with-http_gzip_static_module \
--prefix=~/bin/nginx \
--with-openssl=~/downloads/openssl-1.1.1j \
--add-module=~/downloads/ngx_http_substitutions_filter_module-0.6.4
make && make install
# ~/bin/nginx/sbin/nginx -s stop
# ~/bin/nginx/sbin/nginx -s quit
# ~/bin/nginx/sbin/nginx reload