Upgrade to latest nginx on Debian

By default, Debian 7 comes with nginx 1.2.x which is a little bit out-dated. This short tutorial will introduce how to upgrade to latest nginx on Debian.

First, add necessary wheezy-backports to the sources.list (/etc/apt/sources.list):

[bash]deb http://ftp.de.debian.org/debian/ wheezy-backports main contrib non-free[/bash]

Then, update with the new source:

[bash]aptitude update
aptitude -t wheezy-backports install nginx[/bash]

That’s all 🙂

Troubleshoots

  1. If there are errors regarding “W: There is no public key available for the following key IDs: “, install the following packages:
    [bash]aptitude install debian-keyring debian-archive-keyring[/bash]
  2. __

Leave a Reply