How to upgrade nginx from 1.2 to 1.6 on debian 7

You should add wheezy-backports to your /etc/apt/sources.list:

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

and then on a console:

aptitude update
aptitude -t wheezy-backports install nginx