Skip to content

Compile Nginx from source with custom modules on Debian and Ubuntu

License

Notifications You must be signed in to change notification settings

benhartwich/nginx-autoinstall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-autoinstall

Compile and install Nginx from source with optionnal modules.

screenshot

Compatibility

  • x86, x64, arm*
  • Debian 8 and later
  • Ubuntu 16.04 and later

Features

  • Latest mainline or stable version, from source
  • Optional modules (see below)
  • Removed useless modules
  • Custom nginx.conf (default does not work)
  • Init script for systemd (not provided by default)
  • Logrotate conf (not provided by default)
  • Image filter module / empty_gif module for Matomo Analytics

Optional modules/features

Install Nginx

Just download and execute the script :

wget https://raw.githubusercontent.com/benhartwich/nginx-autoinstall/master/nginx-autoinstall.sh
chmod +x nginx-autoinstall.sh
./nginx-autoinstall.sh

Uninstall Nginx

Just select the option when running the script :

update

You have te choice to delete the logs and the conf.

Update Nginx

To update Nginx, run the script and install Nginx again. It will overwrite current Nginx files and/or modules.

Update the script

The update feature downloads the script from this repository, and overwrite the current nginx-autoinstall.sh file in the working directory. This allows you to get the latest features, bug fixes, and module versions automatically.

update

Log file

A log file is created when running the script. It is located at /tmp/nginx-autoinstall.log.

LICENSE

GPL v3.0

About

Compile Nginx from source with custom modules on Debian and Ubuntu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%