summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--install/share/wsgi.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/install/share/wsgi.py b/install/share/wsgi.py
index 52671b5ab..461c06b94 100644
--- a/install/share/wsgi.py
+++ b/install/share/wsgi.py
@@ -22,4 +22,8 @@ else:
api.log.info('*** PROCESS START ***')
# This is the WSGI callable:
- application = api.Backend.session
+ def application(environ, start_response):
+ if not environ['wsgi.multithread']:
+ return api.Backend.session(environ, start_response)
+ else:
+ api.log.error("IPA does not work with the threaded MPM, use the pre-fork MPM")