Since 1.9, Lemonldap::NG provides a FastCGI server usable to protect applications with Nginx (See Manage virtual hosts page to configure virtual hosts).
This FastCGI server can be used for all LLNG components. It compiles enabled components on-the-fly.
You just have to install lemonldap-ng-fastcgi-server package, it will be started automatically.
To enable the FastCGI server at startup, copy the script llng-fastcgi-server
installed in INITDIR (default /usr/local/lemonldap-ng/etc/init.d/
) in /etc/init.d
and enable it (links to /etc/rcx.d
).
FastCGI server has few parameters. They can be set by environment variables (read by startup script) or by command line options. A default configuration file can be found in /usr/local/lemonlda-ng/etc/default/llng-fastcgi-server
(or /etc/default/lemonldap-ng-fastcgi-server
in Debian package).
The FastCGI server reads also LLTYPE
parameter in FastCGI requests (see portal-nginx.conf or manager-nginx.conf) to choose which module is called:
auth
for the portalmanager
for the manager
if LLTYPE
is set to another value or not set, FastCGI server works as handler.