Keywords: yum, install, httpd, apache, mod_wsgi, WSGIScriptAlias
Directories: /etc, /etc/init.d, /etc/httpd/conf.d, /usr/local/www/username
Files: wsgi.conf
Commands: "sudo bash"
Here is the sample Python code you need to have running. Map URL /app to this code:
# hello.py
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
http://ec2-your-machine/app
The browser should display "Hello World!"