Hello All,

for integration with mod-scgi (debian wheezy: libapache2-mod-scgi)
the appended patch is needed. It shouldn't harm anything else.

If someone want's to try, use in shinken-specific:

define module{
       module_name      WebUI
       module_type      webui
       host             127.0.0.1
       port             4444
       http_backend     flupscgi
       scriptName       /
...
}

In the apache configuration, only a "SCGIMount / 127.0.0.1:4444" directive
is needed. Of course it needs not to be localhost.

Works fine here, but looking for a solution to use unix socket
when both are on the same machine.

Thanks,
 greetings
  Hermann

BTW: Would setting up an account on github and sending in pull requests
the preferred way ?

-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: hermann.la...@iwr.uni-heidelberg.de
# HG changeset patch
# Parent 657275ff96f8f7820e2730b1825406c97d664192

diff --git a/shinken/webui/bottle.py b/shinken/webui/bottle.py
--- a/shinken/webui/bottle.py
+++ b/shinken/webui/bottle.py
@@ -1894,6 +1894,13 @@
         kwargs.update(self.options)  # allow to override bindAddress and others
         flup.server.fcgi.WSGIServer(handler, **kwargs).run()
 
+class FlupSCGIServer(ServerAdapter):
+    def run(self, handler):  # pragma: no cover
+        import flup.server.scgi
+        kwargs = {'bindAddress': (self.host, self.port)}
+        kwargs.update(self.options)  # allow to override bindAddress and others
+        flup.server.scgi.WSGIServer(handler, **kwargs).run()
+
 
 class WSGIRefServer(ServerAdapter):
     def run(self, handler):  # pragma: no cover
@@ -2093,6 +2100,7 @@
 server_names = {
     'cgi': CGIServer,
     'flup': FlupFCGIServer,
+    'flupscgi': FlupSCGIServer,
     'wsgiref': WSGIRefServer,
     'wsgirefselect': WSGIRefServerSelect,
     'cherrypy': CherryPyServer,
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to