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. __

About NhocConan

A super lazy guy who tries to write tech blog entries in English. He is lazy, so he can only write when he is in a good mood or when he is tired of coding.

Leave a comment

Your email address will not be published. Required fields are marked *