diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2010-11-08 10:58:29 +0100 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-11-22 12:35:52 -0500 |
commit | 61e2016ee3e52d938557c0bed0248476555b0afa (patch) | |
tree | 668943c90d7efe6ed82d8b48ee74b522c4e17c5f | |
parent | b67df045beccf192c9be3ba61fb68986407ae045 (diff) | |
download | freeipa-61e2016ee3e52d938557c0bed0248476555b0afa.tar.gz freeipa-61e2016ee3e52d938557c0bed0248476555b0afa.tar.xz freeipa-61e2016ee3e52d938557c0bed0248476555b0afa.zip |
Ensure that Apache is running with MPM=Prefork
Script wsgi.py checks if Apache is compiled with MPM=Prefork
and if not, it refuses to run.
https://fedorahosted.org/freeipa/ticket/252
-rw-r--r-- | install/share/wsgi.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/install/share/wsgi.py b/install/share/wsgi.py index 52671b5a..461c06b9 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") |