Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

value such as a filename, or a directive may enable you to specify various
options. Some special directives, called section directives, look like HTML
tags. Section directives are surrounded by angle brackets, such as


. Section directives usually enclose a group of directives that
apply only to the directory specified in the section:

Click here to view code image
<Directory somedir/in/your/tree>
directive option option
directive option option



A section is always closed with a matching section tag that looks like this:


. Note that section tags, like any other directives, are
specified one per line.
TIP
Apache is configured with an alias that lets you view the documentation
installed in /usr /share/doc by using your web browser at
localhost/manual. After installing and starting Apache, you can find an
index of directives at http://localhost/manual/mod/directives.html.

Editing apache2.conf


Most of the default settings in the config file are okay to keep, particularly if
you’ve installed the server in a default location and aren’t doing anything
unusual on your server. The file includes clear comments describing most of
the settings. In general, if you do not understand what a particular directive is
for, leave it set to the default value.


The following sections describe some of the configuration file settings you
might want to change concerning operation of your server.


ServerRoot

The ServerRoot directive sets the absolute path to your server directory.
This directive tells the server where to find all the resources and configuration
files. Many of these resources are specified in the configuration files relative
to the ServerRoot directory.


Your ServerRoot directive should be set to /etc/apache2 if you
installed the Ubuntu package or /usr/local/apache (or whatever
directory you chose when you compiled Apache) if you installed from the

Free download pdf