Ubuntu Unleashed 2019 Edition: Covering 18.04, 18.10, 19.04

(singke) #1

Here are the same directives specified using UID and GID:


Click here to view code image
User #48
Group #48


TIP
If you find a user on your system (other than root) with a UID and GID of
0 , your system has been compromised by a malicious user.

ServerAdmin

The ServerAdmin directive should be set to the address of the webmaster
managing the server. This address should be a valid email address or alias,
such as [email protected], because this address is
returned to a visitor when a problem occurs on the server.


ServerName

The ServerName directive sets the hostname the server will return. Set it to
a fully qualified domain name (FQDN). For example, set it to
[http://www.your.domain rather than simply www. This is particularly important](http://www.your.domain rather than simply www. This is particularly important)
if this machine will be accessible from the Internet rather than just on your
local network.


You do not need to set the ServerName directive unless you want a name
other than the machine’s canonical name returned. If this value isn’t set, the
server will figure out the name by itself and set it to its canonical name.
However, you might want the server to return a friendlier address, such as
[http://www.your.domain. Whatever you do, ServerName should be a real](http://www.your.domain. Whatever you do, ServerName should be a real)
Domain Name System (DNS) name for your network. If you’re administering
your own DNS, remember to add an alias for your host. If someone else
manages the DNS for you, ask that person to set this name for you.


DocumentRoot

Set the DocumentRoot directive to the absolute path of your document tree,
which is the top directory from which Apache will serve files. By default, it’s
set to /var/www/. If you built the source code yourself and did not choose
another directory when you compiled Apache, DocumentRoot is set to
/usr/local/apache/htdocs.

Free download pdf