path: root/docs
diff options
authorMartin Krafft <>2010-01-31 02:32:45 +0100
committerJeremy Kerr <>2010-08-10 11:49:35 +0800
commit2ad2af87e5e438f26ae1f26d21d02052f75cc091 (patch)
tree1524f1ba1ac9817706fbe3f7408fb78725da3c83 /docs
parentef3b7b60bbfbcd7b61e3a04797d110ee19fc4506 (diff)
lib/apache2: Add WSGI Handler
Patchwork/Django can be run directly with WSGI, which is bound to be faster and less complex than FastCGI. This patch provides the necessary Apache configuration and the WSGI handler, as well as an update to the docs. Since python-flup is deprecated and WSGI supersedes FastCGI, it should be(come) the preferred method. Hence I documented it first. For the xmlrpc interface to work with WSGI, the HTTP authorization information needs to be passed to the WSGI handler. This is done by setting WSGIPassAuthorization On in the apache2 config file snippet. Ref:,-mod_wsgi-and-HTTP-Authentication.html Signed-off-by: martin f. krafft <> Signed-off-by: Jeremy Kerr <>
Diffstat (limited to 'docs')
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/INSTALL b/docs/INSTALL
index 7a32434..82b6694 100644
--- a/docs/INSTALL
+++ b/docs/INSTALL
@@ -153,10 +153,22 @@ in brackets):
Example apache configuration files are in lib/apache/.
+ django has built-in support for WSGI, which supersedes the fastcgi
+ handler. It is thus the preferred method to run patchwork.
+ The necessary configuration for Apache2 may be found in
+ lib/apache2/patchwork.wsgi.conf.
+ You will need to install/enable mod_wsgi for this to work:
+ a2enmod wsgi
+ apache2ctl restart
- This should be the simpler of the two to set up. An example apache
- configuration file is in:
+ An example apache configuration file for mod_python is in: