To use Nginx, you must install LemonLDAP::NG FastCGI server, which is not installed by lemonldap-ng metapackage.
To use Nginx, you must install LemonLDAP::NG FastCGI server or use <code>llngapp.psgi</code><em>(provided in examples)</em> with a PSGI server. See <ahref="psgi.html"class="wikilink1"title="documentation:2.0:psgi">Advanced PSGI usage</a>.
<ahref="https://metacpan.org/release/Plack"class="urlextern"title="https://metacpan.org/release/Plack"rel="nofollow">Plack</a> is a powerful engine that powers many very fast <ahref="http://plackperl.org/#servers"class="urlextern"title="http://plackperl.org/#servers"rel="nofollow">servers</a>. LLNG uses some Plack libraries to run as FastCGI server. It can so easily be launched on these servers.
<ahref="https://metacpan.org/release/Plack"class="urlextern"title="https://metacpan.org/release/Plack"rel="nofollow">Plack</a> is a powerful engine that powers many very fast <ahref="http://plackperl.org/#servers"class="urlextern"title="http://plackperl.org/#servers"rel="nofollow">servers</a>. LLNG uses some Plack libraries to run as FastCGI server. It can so easily be launched on these servers. See also <ahref="psgi.html"class="wikilink1"title="documentation:2.0:psgi">Advanced PSGI usage</a> if you want to replace LLNG FastCGI server.
</p>
</div>
<!-- EDIT1 SECTION "Deploy LemonLDAP::NG on a Plack server" [1-295] -->
<!-- EDIT1 SECTION "Deploy LemonLDAP::NG on a Plack server" [1-377] -->
<liclass="level1"><divclass="li"><ahref="http://uwsgi-docs.readthedocs.io/en/latest/Perl.html"class="urlextern"title="http://uwsgi-docs.readthedocs.io/en/latest/Perl.html"rel="nofollow">uWSGI</a><em>(probably the fastest)</em>: <strong>see below</strong></div>
<h1class="sectionedit1"id="ignore_some_manager_tests">Ignore some manager tests</h1>
<divclass="level1">
<p>
Each time you save a configuration, Manager launch a lot of tests:
</p>
<ul>
<liclass="level1"><divclass="li"> unit tests for each key: they are declared in Lemonldap::NG::Manager::Attributes <em>(source Lemonldap::NG::Manager::Build::Attributes)</em></div>
</li>
<liclass="level1"><divclass="li"> more advanced tests declared in Lemonldap::NG::Manager::Conf::Tests</div>
</li>
</ul>
<p>
In some case <em>(conf overridden in INI file,…)</em>, you may have to ignore some of them. You just have to list them <em>(space separated)</em> in a special key in <code>lemonldap-ng.ini</code>, section <code>[Manager]</code>:
</p>
<ul>
<liclass="level1"><divclass="li"><code>skippedUnitTests</code> for unit tests</div>
</li>
<liclass="level1"><divclass="li"><code>skippedGlobalTests</code> for global tests</div>
For Nginx, you can use another auth server instead of llng-fastcgi-server. See: <ahref="highperfnginxhandler.html"class="wikilink1"title="documentation:2.0:highperfnginxhandler">High performance handler for Nginx</a>.
</p>
<p>
To increase handler performance, you can disable “Sessions activity timeout” To prevent it from writing to the session database.
</p>
...
...
@@ -119,7 +123,7 @@ Handlers check rights and calculate headers for each HTTP hit. So to improve per
</div><divclass="noteimportant">Macros and groups are computed in alphanumeric order, that is, in the order they are displayed in the manager. For example, macro “macro1” will be computed before macro “macro2”: so, expression of macro2 may involve value of macro1. As same for groups: a group rule may involve another, previously computed group.
</div>
</div>
<!-- EDIT4 SECTION "Macros and groups" [987-3081] -->
<!-- EDIT4 SECTION "Macros and groups" [1129-3223] -->
@@ -334,7 +338,7 @@ This test isn't a “only-backend” test but embed some LLNG methods, so r
<tdclass="col0 centeralign"colspan="8"><em>The source of this test is available in sources: e2e-tests/sbperf.pl</em></td>
</tr>
</table></div>
<!-- EDIT9 TABLE [7534-9437] --><ul>
<!-- EDIT9 TABLE [7676-9579] --><ul>
<liclass="level1"><divclass="li"><em><strong>(1) :</strong> “purge” test is done with Apache::Session::Browseable-1.2.5 and LLG-2.0. Earlier results are not so good.</em></div>
</li>
<liclass="level1"><divclass="li"><em><strong>(2) :</strong> “purge” test is done with Apache::Session::Browseable-1.2.6 and LLG-2.0.</em></div>
LLNG is build on <ahref="http://plackperl.org/"class="urlextern"title="http://plackperl.org/"rel="nofollow">Plack</a>, so it can be used with any compatible server:
<h2class="sectionedit2"id="fastcgi_server_replacement">FastCGI server replacement</h2>
<divclass="level2">
<p>
A <code>llng-server.psgi</code> is provided in example directory. It is designed to replace exactly FastCGI server. You can use it :
</p>
<ul>
<liclass="level1"><divclass="li"> with a FCGI Plack server, but you just have to change llng-fastcgi-server engine <em>(in /etc/default/llng-fastcgi-server)</em> to have the same result</div>
</li>
<liclass="level1"><divclass="li"> with a HTTP Plack server, not yet tested</div>
</li>
<liclass="level1"><divclass="li"> with uWSGI <em><strong>(see below)</strong></em></div>
</li>
</ul>
<divclass="noteimportant">Starman, Twiggy,… are HTTP servers, not FCGI ones !
</div>
<p>
You can also replace only a part of it to create a specialized FastCGI server (portal,…). Look at <code>llng-server.psgi</code> example and take the part you want to use.
</p>
<p>
There are also some other psgi files in examples directory.
</p>
<p>
See also <ahref="highperfnginxhandler.html"class="wikilink1"title="documentation:2.0:highperfnginxhandler">High performance handler for Nginx</a>
</p>
</div>
<!-- EDIT2 SECTION "FastCGI server replacement" [478-1265] -->