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
-
Download the NGINX community version:
# wget https://nginx.org/download/nginx-1.14.2.tar.gz
-
Untar the NGINX file:
# tar -xvzf nginx-1.14.2.tar.gz
-
Change the directory to
nginx-1.14.2
:# cd nginx-1.14.2
-
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
-
-
Run the
make
command to compile NGINX:# make
-
Run the
make install
command to install NGINX:# sudo make install
-
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.