2015-01-22 07:50:24 +08:00
|
|
|
mod_wsgi is 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 personal sites running on commodity
|
|
|
|
web hosting services.
|
2010-05-12 04:54:56 +08:00
|
|
|
|
2015-01-22 07:50:24 +08:00
|
|
|
All major Python web frameworks/applications support mod_wsgi,
|
|
|
|
including Django, Flask, Pyramid, TurboGears, ...
|
2010-05-12 04:54:56 +08:00
|
|
|
|
2010-05-13 06:37:20 +08:00
|
|
|
You'll need to add the following line to your /etc/httpd/httpd.conf file:
|
2011-02-14 07:36:45 +08:00
|
|
|
Include /etc/httpd/extra/mod_wsgi.conf
|
2015-01-22 07:50:24 +08:00
|
|
|
|
|
|
|
From version 4.2, mod_wsgi ships with additional helper program for
|
|
|
|
developers, mod_wsgi-express, which enables easier development and
|
|
|
|
debugging with mod_wsgi and Apache.
|
|
|
|
|
|
|
|
If you are a developer, you can enable the helper with:
|
|
|
|
ENABLE_EXPRESS=1 ./mod_wsgi.SlackBuild
|
|
|
|
|
|
|
|
For express functionality you'll need to install 'pysetuptools' and
|
|
|
|
'mod-wsgi-metrics' (both available from SBo).
|