PingIntelligence

Configuring NGINX for Ubuntu 16.04

Configure NGINX for Ubuntu 16.04.

About this task

To compile NGINX Community Edition 1.14.2 for PingIntelligence for APIs:

Steps

  1. Download the NGINX community version:

    # wget https://nginx.org/download/nginx-1.14.2.tar.gz
  2. Untar the NGINX file:

    # tar -xvzf nginx-1.14.2.tar.gz
  3. Change the directory to nginx-1.14.2:

    # cd nginx-1.14.2
  4. Compile and install NGINX by running the following command.

    These options for compiling NGINX are in addition to your environment-specific options:

    • --with-compat: This option enables NGINX to load dynamic modules.

    • --with_http_ssl_module: This flag is used configure Secure Sockets Layer (SSL) support in NGINX.

    # ./configure --with-compat --with-http_ssl_module
  5. Run the make command to compile NGINX:

    # make
  6. Run the make install command to install NGINX:

    # sudo make install
  7. Verify the compilation by entering the following command:

    # sudo /usr/local/nginx/sbin/nginx -V

    Result:

    The output of the above command should display --with-compat and --with_http_ssl_module flags.