nginx-build
nginx-build copied to clipboard
Build NGINX with latest OpenSSL from source on Raspberry Pi
NGINX Build Script
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.
Usage
Installation
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.shcat build_nginx.sh(review downloaded code before executing)sudo chmod +x build_nginx.shsudo ./build_nginx.shsudo nginx
Upgrading
cd /usr/local/src/nginx/sudo rm /usr/local/src/nginx/build_nginx.shsudo curl -L https://raw.githubusercontent.com/MatthewVance/nginx-build/master/build-nginx.sh -o build_nginx.shcat build_nginx.sh(review downloaded code before executing)sudo chmod +x build_nginx.shsudo kill -QUIT $( cat /var/run/nginx.pid )sudo ./build_nginx.shsudo nginx
Issues
If you have any problems with or questions about this image, please contact me through a GitHub issue.
Contributing
You are invited to contribute fixes and/or updates.
Acknowledgments
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.
License
Unless otherwise specified, all code is released under the MIT License (MIT). See the repository's LICENSE file for details.