|
71.
|
|
|
<emphasis role="bold">User</emphasis> - The User directive sets the userid used by the server to answer requests. This setting determines the server's access. Any files inaccessible to this user will also be inaccessible to your website's visitors. The default value for User is "www-data".
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:482(para)
|
|
72.
|
|
|
Unless you know exactly what you are doing, do not set the User directive to root. Using root as the User will create large security holes for your Web server.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:489(para)
|
|
73.
|
|
|
<emphasis role="bold">Group</emphasis> - The Group directive is similar to the User directive. Group sets the group under which the server will answer requests. The default group is also "www-data".
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:495(para)
|
|
74.
|
|
|
Apache2 Modules
|
|
|
|
Модулі Apache2
|
|
Translated by
Yuri Chornoivan
|
|
|
|
Located in
serverguide/C/web-servers.xml:502(title)
|
|
75.
|
|
|
Apache2 is a modular server. This implies that only the most basic functionality is included in the core server. Extended features are available through modules which can be loaded into Apache2. By default, a base set of modules is included in the server at compile-time. If the server is compiled to use dynamically loaded modules, then modules can be compiled separately, and added at any time using the LoadModule directive. Otherwise, Apache2 must be recompiled to add or remove modules.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:504(para)
|
|
76.
|
|
|
Ubuntu compiles Apache2 to allow the dynamic loading of modules. Configuration directives may be conditionally included on the presence of a particular module by enclosing them in an <emphasis><IfModule></emphasis> block.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:516(para)
|
|
77.
|
|
|
You can install additional Apache2 modules and use them with your Web server. For example, run the following command at a terminal prompt to install the <emphasis>MySQL Authentication</emphasis> module:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:523(para)
|
|
78.
|
|
|
sudo apt install libapache2-mod-auth-mysql
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:530(command)
|
|
79.
|
|
|
See the <filename>/etc/apache2/mods-available</filename> directory, for additional modules.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:533(para)
|
|
80.
|
|
|
Use the <application>a2enmod</application> utility to enable a module:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:537(para)
|