How to install Nginx on Ubuntu

2015-05-09 · 1 min read

For more up-to-date Nginx versions, it is a good idea to add official Nginx package source URLs.

As Nginx releases are signed using PGP you need to download its PGP key and then add it to apt.

apt-key add nginx_signing.key

Append to /etc/apt/source.list the appropriate package source URL depending on your OS version, e.g. for Trusty

deb trusty nginx
deb-src trusty nginx

Finally, install Nginx.

apt-get install nginx

Subscribe to My Newsletter

The latest programming-related news, articles and resources - sent to your inbox monthly. Unsubscribe anytime.