From 1d529a8d09a2577da9a3883572c2f8ae6dd04d58 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 24 Feb 2010 11:29:23 -0700 Subject: Run ipaserver under mod_wsgi --- install/share/wsgi.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 install/share/wsgi.py (limited to 'install/share/wsgi.py') diff --git a/install/share/wsgi.py b/install/share/wsgi.py new file mode 100644 index 00000000..457d8e02 --- /dev/null +++ b/install/share/wsgi.py @@ -0,0 +1,13 @@ +""" +WSGI appliction for IPA server. +""" + +from ipalib import api +api.bootstrap(context='server', debug=True, log=None) +api.finalize() +api.log.info('*** PROCESS START ***') +import ipawebui +ui = ipawebui.create_wsgi_app(api) + +# This is the WSGI callable: +application = api.Backend.session -- cgit