search close

Ubuntu NGINX-Plus

access_time Updated Jun 29, 2022

Add the package repositories

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
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
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
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 Nginx module

  1. Install the Signal Sciences Nginx module by running the following command:

    sudo apt-get install nginx-module-sigsci-nxp=1.17.3*
    sudo apt-get install nginx-module-sigsci-nxp=1.15.10*
    sudo apt-get install nginx-module-sigsci-nxp=1.15.7*

  2. In your Nginx config file (located by default at /etc/nginx/nginx.conf), add the following lines to the global section after the pid /run/nginx.pid; line:

    load_module /etc/nginx/modules/ngx_http_sigsci_module.so;
  3. Restart the Nginx service to initialize the new module.

    sudo service nginx restart