Install Nginx 1.6.0 on Debian Wheezy


Wheezy comes by default with Nginx 1.2 which is already quite old. In my case I needed some features that were only available above 1.3.3 – the latest version is currently 1.7.2.

To install it you have to add this repo:
echo "deb http://dotdeb.netmirror.org/ stable all" >> /etc/apt/sources.list.d/dotdeb.list
echo "deb-src http://dotdeb.netmirror.org/ stable all" >> /etc/apt/sources.list.d/dotdeb.list

Add the key:
wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add –

And install Nginx:
apt-get update
apt-get install nginx

If you have a more recent version installed you may upgrade it or better just remove it before.