For Ubuntu: https://github.com/vladgh/VladGh.com-LEMP (you can edit it before you run the installer and set the version of nginx you want). Posted at Nginx Forum: http://forum.nginx.org/read.php?2,178962,179162#msg-179162