MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap
Revision 1 as of 2013-12-26 12:14:07
  • Python
  • modwsgi

modwsgi

Python WSGI adapter module for Apache.

http://code.google.com/p/modwsgi/

Ubuntu installation 12.04

  • apt-get install libapache2-mod-wsgi
  • service apache2 restart

Create file /var/www/test.wsgi

   1 def application(environ, start_response):
   2     status = '200 OK'
   3     output = 'Hello World! Mod WSGI running'
   4 
   5     response_headers = [('Content-type', 'text/plain'),
   6                         ('Content-Length', str(len(output)))]
   7     start_response(status, response_headers)
   8 
   9     return [output]

Add to file /etc/apache2/sites-available/default inside the Virtual host the following

WSGIScriptAlias /test /var/www/test.wsgi
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01