Debian Codegraph @

doc/sources/admin/confignginx.rst

raw
1 Deploy Nginx configuration
2 ==========================
3
4 FastCGI server
5 --------------
6
7 To use Nginx, you must install LemonLDAP::NG FastCGI server or use
8 ``llngapp.psgi`` *(provided in examples)* with a PSGI server. See
9 :doc:`Advanced PSGI usage<psgi>`.
10
11 .. note::
12
13 If installation has been done with packages, this should be already done.
14
15 Debian/Ubuntu
16 ~~~~~~~~~~~~~
17
18 ::
19
20 apt install lemonldap-ng-fastcgi-server
21
22 Enable and start the service :
23
24 ::
25
26 systemctl enable lemonldap-ng-fastcgi-server
27 systemctl start lemonldap-ng-fastcgi-server
28
29 Red Hat/CentOS
30 ~~~~~~~~~~~~~~
31
32 ::
33
34 yum install lemonldap-ng-nginx lemonldap-ng-fastcgi-server
35
36 Enable and start the service :
37
38 ::
39
40 systemctl enable lemonldap-ng-fastcgi-server
41 systemctl start lemonldap-ng-fastcgi-server
42
43 Files
44 -----
45
46 With tarball installation, Nginx configuration files will be installed
47 in ``/usr/local/lemonldap-ng/etc/``, else they are directly in web server
48 configuration.
49
50 .. _debianubuntu-1:
51
52 Debian/Ubuntu
53 ~~~~~~~~~~~~~
54
55 - Install snippet for vhost configuration files:
56
57 ::
58
59 ln -s /etc/lemonldap-ng/nginx-lua-headers.conf /etc/nginx/snippets/llng-lua-headers.conf
60
61 - Enable portal, manager and handler/reload sites:
62
63 ::
64
65 ln -s /etc/nginx/sites-available/portal-nginx.conf /etc/nginx/sites-enabled/
66 ln -s /etc/nginx/sites-available/manager-nginx.conf /etc/nginx/sites-enabled/
67 ln -s /etc/nginx/sites-available/handler-nginx.conf /etc/nginx/sites-enabled/
68
69
70 - Enable test sites (optional):
71
72 ::
73
74 ln -s /etc/nginx/sites-available/test-nginx.conf /etc/nginx/sites-enabled/