In it's most simplest form..
Create a file called
hello_world.wsgi with the following contents. This should be outside of your
DocumentRoot so that Apache is unable to serve it up as plain text:
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'),
Then configure your vhost to serve all requests beneath
/ from that script:
WSGIScriptAlias / <path_to_script>/hello_world.wsgi