diff --git a/doc/sources/admin/fastcgiserver.rst b/doc/sources/admin/fastcgiserver.rst index 7cb0c20c0..079fa7967 100644 --- a/doc/sources/admin/fastcgiserver.rst +++ b/doc/sources/admin/fastcgiserver.rst @@ -39,8 +39,11 @@ The FastCGI server reads also ``LLTYPE`` parameter in FastCGI requests (see portal-nginx.conf or manager-nginx.conf) to choose which module is called: -- ``cgi`` for the portal (or any CGI: it works like PHP-FPM for Perl !) +- ``cgi`` to run .cgi scripts in FastCGI compatibility mode +- ``psgi`` ro run .psgi scripts under FastCGI - ``manager`` for the manager +- ``handler`` for the handler +- ``portal`` for the portal - ``status`` to see statistics (if enabled) if ``LLTYPE`` is set to another value or not set, FastCGI server works diff --git a/fastcgi-server/sbin/llng-fastcgi-server b/fastcgi-server/sbin/llng-fastcgi-server index 042572ade..8ad9e262f 100644 --- a/fastcgi-server/sbin/llng-fastcgi-server +++ b/fastcgi-server/sbin/llng-fastcgi-server @@ -76,6 +76,10 @@ my %builder = ( require Lemonldap::NG::Manager; return Lemonldap::NG::Manager->run( {} ); }, + portal => sub { + require Lemonldap::NG::Portal; + return Lemonldap::NG::Portal->run( {} ); + }, cgi => sub { require CGI::Emulate::PSGI; require CGI::Compile; diff --git a/lemonldap-ng-handler/eg/llng-server.psgi b/lemonldap-ng-handler/eg/llng-server.psgi index 711246ca1..e904035cd 100644 --- a/lemonldap-ng-handler/eg/llng-server.psgi +++ b/lemonldap-ng-handler/eg/llng-server.psgi @@ -24,6 +24,10 @@ my %builder = ( require Lemonldap::NG::Manager; return Lemonldap::NG::Manager->run( {} ); }, + portal => sub { + require Lemonldap::NG::Portal; + return Lemonldap::NG::Portal->run( {} ); + }, cgi => sub { require CGI::Emulate::PSGI; require CGI::Compile;