This is an NGINX build script which compiles NGINX with a custom version of OpenSSL. It should work on other Debian-based Linux distros.
The benefit of building from source is you can customize the modules to your needs and always use the latest versions of NGINX and OpenSSL.
Compiling will take time, especially on a Raspberry Pi, so be patient.
sudo mkdir /usr/local/src/nginx/
cd /usr/local/src/nginx/
sudo curl -L https://raw.githubusercontent.com/MatthewVance/nginx-build/master/build-nginx.sh -o build_nginx.sh
cat build_nginx.sh
(review downloaded code before executing)sudo chmod +x build_nginx.sh
sudo ./build_nginx.sh
sudo nginx
cd /usr/local/src/nginx/
sudo rm /usr/local/src/nginx/build_nginx.sh
sudo curl -L https://raw.githubusercontent.com/MatthewVance/nginx-build/master/build-nginx.sh -o build_nginx.sh
cat build_nginx.sh
(review downloaded code before executing)sudo chmod +x build_nginx.sh
sudo kill -QUIT $( cat /var/run/nginx.pid )
sudo ./build_nginx.sh
sudo nginx
If you have any problems with or questions about this image, please contact me through a GitHub issue.
You are invited to contribute fixes and/or updates.
The script was originally based on the build_nginx.sh script from @MattWilcox, but revised overtime to better fit my needs. You can find more details about the other Matt's version in his blog post.
Unless otherwise specified, all code is released under the MIT License (MIT). See the repository's LICENSE
file for details.