Using Gunicorn on the ActivePython AMI by Troy Topnik  Troy
Topnik, February 4, 2011 gunicorn on the ActivePython AMI  Last
month we posted a screencast from Raymond Hettinger on Getting
Started with the ActivePython AMI on EC2. For this follow-up
post, Mike Ivanov walked me through how to swap the default
Apache web server for Gunicorn (aka Green Unicorn, a Python WSGI
web server) which is a popular replacement for Django
environments.  This tutorial continues on from the Building a
Python-centric WebServer in the Cloud tutorial, but to make it
more broadly useful we're going to edit the configuration files
in place on the server, rather than using Fabric for deployment
as mentioned in the tutorial. Using fab is ultimately more
flexible and powerful, but editing files on the server works
too.  1) Install Gunicorn  This part is easy using PyPM. Log in
to your EC2 instance using SSH and run the following command:
/opt/ActivePython-2.6/bin/pypm install gunicorn  2) Change the
config files  We'll start by creat