Debian Codegraph @

doc/sources/admin/fastcgiserver.rst

raw
1 LemonLDAP::NG FastCGI server
2 ============================
3
4 Since 1.9, LL::NG provides a FastCGI server that can be used for protecting
5 applications with Nginx (See
6 :doc:`Manage virtual hosts<configvhost>` page to configure virtual hosts)
7 or the DevOps Handler (See :doc:`SSO as a Service<ssoaas>`).
8
9 This FastCGI server can be implemented for all LL::NG components.
10 It compiles enabled components just-in-time.
11
12 Start
13 -----
14
15 Using package
16 ~~~~~~~~~~~~~
17
18 You just have to install lemonldap-ng-fastcgi-server package, it will be
19 started automatically.
20
21 Using "make install"
22 ~~~~~~~~~~~~~~~~~~~~
23
24 To enable the FastCGI server at startup, copy the script
25 ``llng-fastcgi-server`` installed in INITDIR (default
26 ``/usr/local/lemonldap-ng/etc/init.d/``) in ``/etc/init.d`` and enable
27 it (links to ``/etc/rc<x>.d``).
28
29 Configuration
30 -------------
31
32 FastCGI server has few parameters. They can be set by environment
33 variables (read by startup script) or by command line options. A default
34 configuration file can be found in
35 ``/usr/local/lemonldap-ng/etc/default/llng-fastcgi-server`` (or
36 ``/etc/default/lemonldap-ng-fastcgi-server`` in Debian package).
37
38 The FastCGI server reads also ``LLTYPE`` parameter in FastCGI requests
39 (see portal-nginx.conf or manager-nginx.conf) to choose which module is
40 called:
41
42 - ``cgi`` to run .cgi scripts in FastCGI compatibility mode
43 - ``psgi`` ro run .psgi scripts under FastCGI
44 - ``manager`` for the manager
45 - ``handler`` for the handler
46 - ``portal`` for the portal
47 - ``status`` to see statistics (if enabled)
48
49 if ``LLTYPE`` is set to another value or not set, FastCGI server works
50 as handler.