search close

Ubuntu NGINX-Plus

access_time Updated Jun 2, 2023

Add the package repositories

Add the version of the Ubuntu package repository that you want to use.

Ubuntu 22.04 - jammy

sudo apt-get update
sudo apt-get install -y apt-transport-https wget gnupg
wget -qO - https://apt.signalsciences.net/release/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/sigsci.gpg
sudo echo "deb [signed-by=/usr/share/keyrings/sigsci.gpg] https://apt.signalsciences.net/release/ubuntu/ jammy main" | sudo tee /etc/apt/sources.list.d/sigsci-release.list 
sudo apt-get update

Ubuntu 20.04 - focal

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

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

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

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

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 that supports the NGINX version that you want to use:

    • NGINX Plus 29

      sudo apt-get install nginx-module-sigsci-nxp=1.23.4*
      
    • NGINX Plus 28

      sudo apt-get install nginx-module-sigsci-nxp=1.23.2*
      
    • NGINX Plus 27

      sudo apt-get install nginx-module-sigsci-nxp=1.21.6*
      
    • NGINX Plus 26

      sudo apt-get install nginx-module-sigsci-nxp=1.21.5*
      
    • NGINX Plus 25

      sudo apt-get install nginx-module-sigsci-nxp=1.21.3*
      
    • NGINX Plus 24

      sudo apt-get install nginx-module-sigsci-nxp=1.19.10*
      
    • NGINX Plus 23

      sudo apt-get install nginx-module-sigsci-nxp=1.19.5*
      
    • NGINX Plus 22

      sudo apt-get install nginx-module-sigsci-nxp=1.19.0*
      
    • NGINX Plus 21

      sudo apt-get install nginx-module-sigsci-nxp=1.17.9*
      
    • NGINX Plus 20

      sudo apt-get install nginx-module-sigsci-nxp=1.17.6*
      
    • NGINX Plus 19

      sudo apt-get install nginx-module-sigsci-nxp=1.17.3*
      
    • NGINX Plus 18

      sudo apt-get install nginx-module-sigsci-nxp=1.15.10*
      
    • NGINX Plus 17

      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