search close

Ubuntu NGINX 1.14.1+

access_time Updated Jun 20, 2021

Add the Package Repositories

We’ll first add in the Signal Sciences apt repositories as this simplifies the installation process.

Ubuntu 20.04 “focal”

Cut-and-paste the following script into a terminal:

sudo apt update
sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo apt-key add -
sudo echo "deb https://apt.signalsciences.net/release/ubuntu/ focal main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list && sudo apt-get update

Ubuntu 18.04 “bionic”

Cut-and-paste the following script into a terminal:

sudo apt update
sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo apt-key add -
sudo echo "deb https://apt.signalsciences.net/release/ubuntu/ bionic main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list && sudo apt-get update

Ubuntu 16.04 “xenial”

Cut-and-paste the following script into a terminal:

sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo apt-key add -
sudo echo "deb https://apt.signalsciences.net/release/ubuntu/ xenial main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list && sudo apt-get update

Ubuntu 14.04 “trusty”

Cut-and-paste the following script:

sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo apt-key add -
sudo echo "deb https://apt.signalsciences.net/release/ubuntu/ trusty main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list && sudo apt-get update

Ubuntu 12.04 “precise”

Cut-and-paste the following script:

sudo apt-get install -y apt-transport-https wget
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo apt-key add -
sudo echo "deb https://apt.signalsciences.net/release/ubuntu/ precise main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list && sudo apt-get update

Install the module with apt

Then install the module by running the following command, replacing “NN.NN” with your Nginx version number:

sudo apt-get install nginx-module-sigsci-nxo=1.NN.NN*

Update the Nginx configuration

Edit your nginx.conf file located by default at /etc/nginx/nginx.conf.

Add the following lines to the global section. For example after the pid /run/nginx.pid; line add:

load_module /etc/nginx/modules/ngx_http_sigsci_module.so;

Restart the Nginx web service

sudo service nginx restart