Setting up NGINX
So let's get NGINX installed on our machine!
Note
We will outline the installation instructions for NGINX on Ubuntu. Installation for other platforms can be found at nginx.com/resources/wiki/start/topics/tutorials/install/.Â
 By default, the nginx
package should already be in Ubuntu's default repositories:
hobnob@hobnob:$ apt-cache show nginx Package: nginx Architecture: all Version: 1.14.0-0ubuntu1 ...
However, we should use the official NGINX repository to ensure we always get the most up-to-date version. To do this, we need to add NGINX's package repository to the list of repositories that Ubuntu will search for when it tries to download packages.
By default, there are two places that Ubuntu will search: inside the /etc/apt/sources.list
file and inside files under the /etc/apt/sources.list.d/
directory. We should not write directly to the /etc/apt/sources.list
 file because when we upgrade our distribution, this file will be overwritten. Instead, we should create a new file...