Debian Codegraph @

doc/sources/admin/configapache.rst

raw
1 Deploy Apache configuration
2 ===========================
3
4
5 .. note::
6
7 This step should have been already done if you installed LL::NG
8 with packages.
9
10 Files
11 -----
12
13
14 .. attention::
15
16 Apache Mod Perl has many issues since 2.4 version with
17 MPM worker and MPM event. No problem for portal and manager since they
18 are now handled by FastCGI. If you want to use Apache for Handler,
19 please switch to MPM prefork, else use Nginx.
20
21 With tarball installation, Apache configuration files will be installed
22 in ``/usr/local/lemonldap-ng/etc/``, else they are in
23 ``/etc/lemonldap-ng``.
24
25 You have to include them in Apache main configuration, for example:
26
27 .. code-block:: apache
28
29 include /usr/local/lemonldap-ng/etc/portal-apache2.conf
30 include /usr/local/lemonldap-ng/etc/handler-apache2.conf
31 include /usr/local/lemonldap-ng/etc/manager-apache2.conf
32
33 To include test sites (optional):
34
35 .. code-block:: apache
36
37 include /usr/local/lemonldap-ng/etc/test-apache2.conf
38
39
40 .. tip::
41
42
43
44 - You can also use symbolic links in ``conf.d`` or ``sites-available``
45 Apache directory.
46 - If you have run the Debian/Ubuntu install command, just use:
47
48 ::
49
50 a2ensite manager-apache2.conf
51 a2ensite portal-apache2.conf
52 a2ensite handler-apache2.conf
53
54 - For test sites (optional):
55
56 ::
57
58 a2ensite test-apache2.conf
59
60
61
62 Modules
63 -------
64
65 You will also need to load some Apache modules:
66
67 - mod_rewrite
68 - mod_perl
69 - mod_alias
70 - mod_fcgid
71 - mod_headers
72
73
74 .. tip::
75
76 With Debian/Ubuntu:
77
78 ::
79
80 a2enmod fcgid perl alias rewrite headers
81
82