Install the latest version of Nginx on Ubuntu

If you are looking to install the most current version of nginx on Ubuntu you can add the following apt source.

If you are wanting to install the latest development version you can use the following source instead

After adding the source you can then update and then apt-get install nginx and you are all set.
If you haven’t installed via ppa on your system you will likely have to install the following packages