Upgrading from Ubuntu 12.10 to 14.04

Seems that a few of my instances in AWS were originally setup using Ubuntu 12.10.  Don’t know how that happened, but anyways.  Now that 12.10 is no longer support you can’t just upgrade. So the solution is to use the old.releases.ubuntu.com site and update/upgrade from there. sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak sudo sed -i -re ‘s/us-west-2.ec2.archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g’ […]

Nginx Deny IP

This is a quick way to deny an ip address accessing your nginx server. Create a new file in /etc/nginx/conf.d called blockips.conf Add the following to the file: deny <bad ip>; Then restart nginx.  The log file will now show 403’s for the IP address. For more info see: http://www.cyberciti.biz/faq/linux-unix-nginx-access-control-howto/