#Update nginx on Debian
Edit your source.list
vi /etc/apt/sources.list
and add this at the end :
deb http://nginx.org/packages/debian/ squeeze nginx
deb-src http://nginx.org/packages/debian/ squeeze nginx
type in your terminal :
gpg --keyserver keyserver.ubuntu.com --recv-key ABF5BD827BD9BF62
gpg -a --export ABF5BD827BD9BF62 | apt-key add -
apt-get update
apt-get install nginx
Finish !
Source file:
/etc/apt/sources.list.d/nginx.list