Package libapache2-mod-wsgi-py26-2.3-1
| System | Binary Distributions | CVS/rsync Source Distributions | |
|---|---|---|---|
10.6/x86_64 | |||
10.6/i386 | |||
10.5/i386 | |||
10.5/powerpc | |||
10.4/i386 | |||
10.4/powerpc | |||
| Description: | Run WSGI python apps through apache2 (2.3-1) | |
The aim of mod_wsgi is to implement a simple to use Apache module
which can host any Python application which supports the Python WSGI
interface. The module would be suitable for use in hosting high
performance production web sites, as well as your average self managed
personal sites running on web hosting services. | ||
| Usage Hints: | ||
sudo a2enmod wsgi2.6.load'
sudo apache2ctl
In a web directory, make a .htaccess file with this line:
AddHandler wsgi-script .wsgi
Then try out a test python script:
def application(environ, start_response):
status = '200 OK'
output = 'Hello World from a WSGI app!'
response_headers = [('Content-type', 'text/plain'),
('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output] | ||
| Section: | web | |
| Maintainer: | Kurt Schwehr <goatbarATusersDOTsourceforgeDOTnet> | |
| Website: | http://modwsgi.org/ | |
| License: | OSI-Approved | |
| Info-File: | dists/10.4/unstable/main/finkinfo/web/libapache2-mod-wsgi-py.info CVS log, Last Changed: Mon, 12 Jan 2009 13:48:02 (UTC) | |
Section list - Flat package list - Search packages
(*) = Unsupported distribution.