I am using a cloudserver. I installed Debian 7 (minimal) from the hosting company's image. Logged in as root.
I have added the following to the bottom of my /etc/apt/sources.list
deb http://nginx.org/packages/debian/ wheezy nginx deb-src http://nginx.org/packages/debian/ wheezy nginx
Then I downloaded the nginx key, and added it to my apt key chain.
I then ran the following commands
apt-get update apt-get install nginx
The system still installed nginx 1.10.1
I understand this is because Debian has an 'approved' list of packages and the only 'approved' version is 1.10.1
But by adding Nginx to the sources.list and updating my apt-get, I was lead to believe this would allow me to download a more up to date version of nginx.
I have followed 4 seperate tutorials today and haven't been able to get any of them to work.
Can someone please tell me the commands I need to execute to upgrade my nginx to 1.8.0 i would be most grateful. I am trying to install this exact version 1.8.0 as I am working on a development box, and trying to replicate the production enviornment as closely as possible and it's using 1.8.0.