1 Answer

0 votes
by
What is Nginx Plus?

Nginx is an open-source web server. And it is Fantastic. It integrates well with many backends and application servers.

Nginx Plus is the commercial version of Nginx. Nginx Plus has more features than Nginx. Such as:

Session persistence to ensure requests are routed to the same upstream server.

A full-featured load balancer.

Discover services using DNS.

More control on cache

Single sign-on

WAF dynamic module

Active length checks to stop sending a request to faulty servers

Bandwidth controls for MP4 streaming

High availability clustering to avoid the single point of failures

Nginx Plus is available for the following distribution:

RHEL/CentOS

Amazon Linux

Oracle Linux

FreeSSD

Ubuntu

Debian

SUSE

And also available on the following IaaS (Infrastructure as a Service):

Google Cloud Platform (GCP)

Amazon Web Services (AWS)

Microsoft Azure

Installing Nginx Plus

As Ngnix is a paid product, we will require a license key to complete the installation, and it can be purchased from the Nginx store. But Nginx offers 30 days free trial version and also to explore the features before buying. So we can download and explore the trial copy.

First of all, if you have Nginx installed already, then you will need to uninstall it to prevent conflict.

To install the Ngnix Plus on Debian or Ubuntu, use the following steps:

Step 1: Create the /etc/ssl/nginx directory to store the repository certificates.

$ sudo mkdir /etc/ssl/nginx  

$ cd /etc/ssl/nginx  

Step 2: We will need to download both public and private certificates from the Nginx customer portal https://cs.nginx.com and download nginx-repo.crt and nginx-repo.key files.

Step 3: Copy the files to the created /etc/ssl/nginx/ directory.

$ sudo cp nginx-repo.crt /etc/ssl/nginx/  

$ sudo cp nginx-repo.key /etc/ssl/nginx/  

Step 4: Download the Nginx signing key from the official site of Nginx, i.e. nginx.org and add it through the following command:

$ sudo wget https://nginx.org/keys/nginx_signing.key  

$ sudo apt-key add nginx_signing.key  

Step 5: Install the apt-utils package and Nginx Plus repository:

Use the following command for Debian:

$ sudo apt-get install apt-transport-https lsb-release ca-certificates  

  

$ printf "deb https://plus-pkgs.nginx.com/debian 'lsb_release -cs' nginx-plus\n" | sudo tee /etc/apt/sources.list.d/nginx-plus.list  

Or use the following command for Ubuntu:

$ sudo apt-get install apt-transport-https lsb-release ca-certificates  

  

$ printf "deb https://plus-pkgs.nginx.com/ubuntu 'lsb_release -cs' nginx-plus\n" | sudo tee /etc/apt/sources.list.d/nginx-plus.list  

Step 6: Download the 90nginx file to /etc/apt/apt.conf.d:

$ sudo wget -q -O /etc/apt/apt.conf.d/90nginx https://cs.nginx.com/static/files/90nginx  

Step 7: Update the Repository information:

$ sudo apt-get update  

Step 8: Finally, after an update, the repository, install the nginx-plus package. To install the Nginx Plus use the following command:

$ sudo apt-get install -y nginx-plus
...